Category : project

this is the code of my ProductController.php function removeCart($id) { Cart::destroy($id); return redirect(‘cartlist’); } this is my route in web.php Route::get("removecart/{id}",[ProductController::class,’removeCart’])->name(‘remove’); this is my balde file code <a href="{{url(‘/removecart/{$item->cart_id}’)}}" class="btn btn-warning" >Remove from Cart</a> my remove from cart button is not working Sourc..

Read more

I have two different laravel projects named Visitor Management and HRMS. I want to create a master panel, which will allow me to give rights of each module from both projects(i.e. to display which modules from both the projects will be shown). Say, I want to display only the Reports module from Visitor Management and ..

Read more

On search.blade.php I need to enter an airport name or its iata code. Then FlightsController will be started which will try to find any matches in database and list them in index.blade.php. I keep getting an error which says that there’s no such controller (Target class [FlightsController] does not exist) //FlightsController.php <?php namespace AppHttpControllers; use ..

Read more

Creating a "laravel/laravel" project at "./blog" PHP Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/process/Pipes/WindowsPipes.php:71 Stack trace: #0 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/process/Pipes/WindowsPipes.php(71): fclose(false) #1 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/process/Pipes/WindowsPipes.php(194): SymfonyComponentProcessPipesWindowsPipes->__construct(false, NULL) #2 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/process/Process.php(1231): SymfonyComponentProcessPipesWindowsPipes::create(Object(SymfonyComponentProcessProcess), NULL) #3 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/process/Process.php(258): SymfonyComponentProcessProcess->getDescriptors() #4 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/process/Process.php(196): SymfonyComponentProcessProcess->start(Array) #5 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Util/ProcessExecutor.php(129): SymfonyComponentProcessProcess->run(Array) #6 phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Util/ProcessExecutor.php(65): ComposerUtilProcessExecutor->doExecute(‘git branch -a -…’, ‘C:xampphtdocs’, false, NULL) ..

Read more

I have just install package from github. i want my input form in blade can get validation. when user enter wrong validation, error message will appear. i’m new in laravel 7. I need help. this is link for package i want use this is my input at blade <input id="icpenjawat" type="mykad" pattern="[0-9]+" maxlength="12" class="form-control @error(‘icpenjawat’) ..

Read more