skip to Main Content

Laravel Form Validation redirecting to web routes when it fails

I have a Laravel app (v10.30.1) this api routes block: <?php use AppHttpControllersEmployeeController; use IlluminateSupportFacadesRoute; Route::prefix('v1')->group(function () { Route::resource('employees', EmployeeController::class) ->only(['store', 'index', 'update']); });``` This method in EmployeeController: /** * Update an existing employee. * * @param IlluminateHttpRequest $request *…

VIEW QUESTION

Installing Laravel 10 in a Subfolder

I am attempting to install my Laravel 10 project in a subfolder so that I can access it at example.com/laravel-project/ instead of example.com/laravel-project/public/. Here is the .htaccess configuration I tried in the /laravel-project/ directory: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)$…

VIEW QUESTION

Test multi storage in laravel

I have a issue while trying to mock multi Storage in laravel test enviromnment. Here is my my code: public function sftp ( Sibling $sibling ) { $file_paths = Storage::build($sibling->config) ->files($this->track->track_token); Storage::disk('public') ->makeDirectory($this->track->track_token); foreach ( $file_paths as $file_path ) {…

VIEW QUESTION

Laravel got route list issue

I am getting this error: Error: Ziggy error: route 'contract/generatePDF?id=517&pickupKM=0' is not in the route list. but is defined in the web.php: GET|HEAD contract/generatePDF Route::get('contract/generatePDF', [AppHttpControllersContractController::class, 'generatePDF'])->name('contract.generatePDF'); and from the vue I am calling this function: router.visit(route("contract/generatePDF?id="+props.contract.id+"&pickupKM="+pickupKM)); also tried like…

VIEW QUESTION

Cpanel – Liverwire filamentphp

Please I need your help. My filaments works fine with 127.0.0.1:8000 (Via artisan serve) But, once I uploaded it to my cPanel, I got an error 404 get livewire/livewire.js. I was able to manipulate this but got another error 404…

VIEW QUESTION
Back To Top
Search