Laravel-Undefined variable in Laravel 9.x
I have a problem while I was trying to use the $user variable, I'm pretty new to laravel but from what I can gather my controller file isn't able to pass the variable $user to my blade file. I have…
I have a problem while I was trying to use the $user variable, I'm pretty new to laravel but from what I can gather my controller file isn't able to pass the variable $user to my blade file. I have…
I am working in one inventory project I use bootsrap modal for inserting and updating records the problem that I am facing is that when I am editing the record the jquery validation only applied on first row not on…
I'm doing my thing in my normal view blade file, but when i edit my code and save it, it doesn't update. I found out that the view cache stored in /storage/framework/views keeps interrupting. Whatever i change in my normal…
I'm trying to follow a small laravel tutorial. In my application I have a controller called, HomeController. In my HomeController, I have the followinf index function public function index() { try { //get autheticated users selected organisation $organisation = $this->getSelectedOrganisationByUser(Auth::user());…
I am trying to run laravel feature tests in parallel mode as it is in document. My phpunit.xml is configed as below : <php> <env name="APP_ENV" value="testing"/> <env name="BCRYPT_ROUNDS" value="4"/> <env name="CACHE_DRIVER" value="array"/> <env name="SESSION_DRIVER" value="array"/> <env name="QUEUE_DRIVER" value="sync"/> <env…
This is My Route Route::namespace("CoreControllerSite") ->prefix("/") ->name("site.") ->group(function () { Route::get("{slug}", "NewsController@index")->name("news.index"); Route::get("show/{slug}", "NewsController@show")->name("news.show"); Route::get("{slug}", "ArticleController@index")->name("article.index"); Route::get("show/{slug}", "ArticleController@show")->name("article.show"); Route::get("{slug}", "VideoController@index")->name("video.index"); }); This is My a href which is I used This Route <a href="{{ route('site.news.show', $item->slug) }}"></a> It gives Such…
I'm working on a alumni portal where I need to display the committee member details. I need to print like 4 members in a line and next 4 in the next line. Any solution would be helpful. <h2>Member Details</h2> <div…
When I try to install npm I get this error version 8.19.3 npm ERR! 404 Not Found - GET https://skimdb.npmjs.com/registry/laravel-echo-server/-/laravel-echo-server-1.6.3.tgz - not_found npm ERR! 404 npm ERR! 404 'laravel-echo-server@https://skimdb.npmjs.com/registry/laravel-echo-server/-/laravel-echo-server-1.6.3.tgz' is not in this registry.
When I run vite run dev --host in my Laravel project, I get below screen on my external network URL: My external URL is: http://192.168.1.6:5173 ➜ Local: http://localhost:5173/ ➜ Network: http://192.168.1.6:5173/ Project runs fine on my app URL defined in…
I am trying to update . I am getting the error The POST method is not supported for this route. Supported methods: GET, HEAD. Following are the code In Route Route::post('editcountries','AppHttpControllersbackendadmineditcountryController@editcountries'); In Controller function editcountries(Request $request) { $country_en = $request->input('country_en');…