I have a laravel app: https://laravel-app.com I want to serve custom pages from a folder on the same domain https:laravel-app.com/player/player.php I have set the .htaccess file But when I try and navigate to that page by using this direct url: https:laravel-app.com/player/player.php I get the laravel routing error: sorry, the page could not be found Can someone explain how to get
Tag: routes
Laravel custom action names and route names using a resource controller?
By default Resource controller gives you those Actions and Route names: ACTION ROUTE NAME index resource.index create resource.create store resource.store show resource.show edit resource….
How to manage the routes in Blade when there are same routes inside two different route groups?
I have created the two resource controller inside two different route groups. One for User One for Admin I am using the ‘route’ keyword for assigning the routes. I am doing so because I wanted to use same views files for both. Here is the blade file When I am in /admin/projects it is using the admin.projects resource routes as
“The Response callback must not be null” when trying to send a PDF file download in Laravel 7
In my Laravel 7 application, I have a route where a PDF is dynamically generated, and I want the browser to treat it as a file download. In writing this, I found a number of docs and questions about Laravel serving a file download using a file saved on the filesystem, but in my case, I don’t want to store
Laravel localization in routes without prefix
I have a Laravel app in 9 difference languages: I’m trying to set up localized URL’s like: All content on the website is displayed in the correct language but routing returns 404 pages except for default fallback language. My web.php My locale middleware: Using the fallback language URLs in production i’m able to get the content localized but URL’s in
Not found route in Laravel 7
Making a website on Laravel 7.28. Added a route to ‘routes/web.php’: The controller is created in ‘appHttpControllersLKIndexController.php’. It has a method: Created promoter file ‘resourcesviewslkindex.blade.php’. When I’m trying to follow the route http://127.0.0.1:8000/lk. I get an error: The requested resource /lk was not found on this server. If I change the ‘lk’ routes to the ‘account’, for example, then at
i want to route from a datatable with action buttons using the url method, but on successful data fetch, buttons routes to 404 page
Please i’ll be online for anything else that i might need to show Please i’ll be online for anything else that i might need to show Please i’ll be online for anything else that i might need to show Please i’ll be online for anything else that i might need to show Please i’ll be online for anything else that
how to customize Auth::routes in laravel
I hope you are the best. I’m trying to create a multi-language feature in my Laravel app. but I don’t know how to insert Auth::routes in my web routes file to support my multi-language. this code …
Missing Required Parameters for Route in Laravel error
I am working with Laravel in this route : Route::get(‘turnIn/{turnin}’,”TurninController@index”)->name(‘turnin.index’); and when calling the route : {{ route(‘turnin.index’, [$turnin])}} …
Laravel 7: Generate named view-routes from blade files in directory
Is there a nice way, to solve this issue: I have a folder ressources/views/project/content with several blade teplates, let’s say: Right now, I define one view route per file: How can I create these routes on thy fly? I could solve it with a loop through all files in this directory, but maybe there is a more elegant way/function in