I have sub folders inside my view folder called I want to route this saled.blade.php and datauploader.php files in web.php I have tried with in both the ways.but both shows 404 errors. and this is the way I mentioned the url of the file in home.blade.php So please help to resolve this Answer if directly form the web file :
Tag: routes
Passing more than one variables from different controllers to a single view in Laravel 8
I need to pass two variables from two different controllers to a view and display the different values from the array variables to two different html form’s select options in Laravel 8. But Laravel doesn’t seem to allow pass two differnt variable to a single view. How do I slove this? Please find the error screenshot from this link. Controllers
Route exists but doesn’t work and deleted route still works Laravel
Well, I was working on my project and suddenly when I created a new route I get this problem where the route exists but it shows 404 !! so I tried to delete an existing route that is working but when I delete that route still works !! I had this problem previously but I just deleted that route and
symfony + api platform – creating alias to a route
We have a rather standard symfony + api-platform project. A while ago, when a route was created it had a typo in it. I noticed that and want to fix it for the future. The problem is that some of our clients may have implemented it already like that. I want it to still work for a while, without being
Laravel Duplicate Route names
I’m using same route name for the get & post methods in route. those routes are using for the same purpose. ex : I’m calling to load add view form using get route Route::get(‘add’, ‘UserController@addView’)->name(‘user.add’); then, I’m calling to store data in that form using post route Route::post(‘add’, ‘UserController@store’)->name(‘user.add’); is there any issue , If I use the same route
How to name a policy for multimodel route in Laravel?
I’m trying to write a policy for this route: Route::delete( ‘users/{user}/locations/{location}’, [UserLocationController::class, ‘destroy’], )->middleware(‘can:delete,user,location’); but …
How to use external function in php route
I am building simple php route But I I have the following, which is working My challange is that… I want to be able to load the function directly from a controller which I am calling the login() is a function i created inside LoginController class I get this error My Route.php Is there anyway i can make use of
Laravel: how to pass GET array to controller?
How to pass array of GET parameters to the controller? This is my route file routes/web.php: And my controller ‘app/Http/Controllers/Parser.php’: So, I expect to get an array of parameters like this: But if I pass GET array to my route path: http://example.com/ids?ids[]=1&ids[]=2&ids[]=15&ids[]=25 I get an empty request object anyway: {“attributes”:{},”request”:{},”query”:{},”server”:{},”files”:{},”cookies”:{},”headers”:{}} Answer There is few ways to get data from GET.
Laravel Route Link – Error Route not Defined
In my web.php containing my routes, I have the following Route: Which links to my Profile Controller I am linking to this controller with However, when I navigate to the page with this route set, I get this error However, the following code works fine with navigation when I switch from route to URL Why does URL work but not
ajax get data request url not found but already exist, Laravel 8
hello guys i have a problem with my ajax data json, i have a project about scan a barcode with a webcam but it just views the code of the barcode, the data in the database not call in my ajax, this is the code of blade, i’m using a modal this is the modal this is the jquery code