Skip to content
Advertisement

Tag: routes

Laravel Views Subfolders routing

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 :

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 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

Advertisement