I am new to laravel and this will be inappropriate question. Although I searched I couldn’t find the answer. My project run smoothly with php artisan serve command. I just wanted to remove the artisan command. So I added my project into htdoc folder of XAMPP. Then I changed according to this answer https://stackoverflow.com/a/28799205/3558507 When I run my project by
Tag: laravel-routing
API routes using Https on laravel gives 404
I created an Laravel API. First, it was using HTTP, I needed to change it to use https. So I created an account on Cloudflare and since then when I go to my API endpoints: GET: https://www.traapp….
Updates to Laravel route file have no effect
I am trying to create a view to display data from the database but I discovered that my route file doesn’t do anything anymore. At the moment I am trying to get the test function working but when I go to /test it just says “Page not found”. The other routes work. Even if I delete all of the contents
how to bind multiple related parameters in one route in laravel
I have Two related Models Anime, Episode and I have changed the RouteKeyName for both of them In Anime Model : In Episode Model : to view an Episode, I use this : routes/web.php EpisodeController.php for example if i have this link …/play/naruto/10 then by using route model binding i will have the first episode with ep_num=10 Instead I want
How to remove route prefix from route actions in Laravel
I am creating localization in Laravel 5.3 application. It must follow such requirements: If route path contains locale prefix, locale should be set according to this prefix If there’s no route prefix,…
Getting “Class ‘appHttpControllersController’ not found” in Laravel 5.1
I’m quite new to Laravel and when I am going through a tutorial when I encountered this error. This is my code in ‘testController.php’. And this is my ‘routes.php’. I am getting this error: Class ‘appHttpControllersController’ not found How can I fix this error? Answer Let’s go through this step by step. 1. Check autoload directive on composer.json Open composer.json
Laravel Middleware / Route Groups
I’m fairly new to Laravel, so this question may obvious to some. In the case of running checks per HTTP request, for example User Authentication. Is there a better, more efficient or simple correct …
Alias for a route with a fixed parameter value
I have this route: Route::get(‘/MyModel/{id}’, ‘MyController@show’); The method show() accepts a parameter called id and I want to setup an alias for /MyModel/1 so it’s accesible from /MyCustomURL. …
Custom defined routes not resolving in Laravel
I have a Laravel 5.2 instance utilizing all the typical out-of-the-box routes for dashboard, cases, home, login/logout, and users (which is working well). I now need to create a wizard with steps (step1, step2, step3, etc.), and I need access to the session. I assigned them to the group middleware. However, when I go to the named route(s), I get
Laravel error: Missing required parameters for route
I keep getting this error ErrorException in UrlGenerationException.php line 17: When ever any page loads and I’m logged in. Here is what my nav looks like @if(Auth::guest()) <…