Skip to content
Advertisement

Tag: routes

Vanilla php files in subfolder with laravel – page not found error

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

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

Advertisement