Questions tagged [laravel-routing]

Routing in Laravel Framework's MVC implementation. Laravel is a free, open source PHP web application framework, and it is released under the MIT license.

laravel-routing is a tag suitable for any questions regarding routing in Laravel's MVC implementation, url handling, or any other matter affecting or affected by routing in Laravel.

2207 questions
0
votes
3 answers

How can we redirect a page to another if a session is not found using route in Laravel 5.3

I am using a session separately other than the default authentication sessions. If an user try to access my secured page, he should have the session set. If anyone without that session try to access means, they will be redirected to error page. I am…
sujivasagam
  • 1,659
  • 1
  • 14
  • 26
0
votes
1 answer

NotFoundHttpException in RouteCollection.php when after sync with github desktop

My laravel project is showing this error: NotFoundHttpException in RouteCollection.php when i am trying to sync my project to github using github desktop, except for this route: Route::get('/', function () { return view('welcome'); }); but…
nekstak
  • 27
  • 1
  • 7
0
votes
1 answer

laravel auth middleware: one route, two views

I am building a store so i could learn laravel. Like most stores, users can add items to a cart but cannot checkout until they register. How do i have the same route return a user name when authorized and a nothing when an authorized. This seemed…
user3533087
  • 53
  • 2
  • 7
0
votes
1 answer

Post Route not Stop working laravel

I am Creating an Application and need a Professional Help as Route::post(....) not working inside Route::group() but working perfect outside Route:group()
0
votes
1 answer

Master routing page in Laravel

Former I had created my own MVC and there was an index.php that all pages passed from the way of it. I mean, I could put a redirect (header('Location: ..');) into index.php, and then none of my website pages can not be opened. Now I use Laravel and…
Martin AJ
  • 6,261
  • 8
  • 53
  • 111
0
votes
1 answer

Laravel 5.3 routes one url 2 controllers middleware

I am trying to use a differt controller for authorized users(middleware auth) and guests(middleware guest) with the same URI but I can't get it to work in laravel 5.3. I tried making 2 routes with the same URI and differt middleware, but it isn't…
Jan Wytze
  • 3,307
  • 5
  • 31
  • 51
0
votes
1 answer

Which laravel routes to use for an IOS app services (web routes or API routes )

I am working on a project in which I have to provide services to a mobile app. Services like sign up, login etc. I was studying Laravel 5.3 routes. There are two main types of routes: web routes and API routes. I read about these but I am still…
user6817600
0
votes
1 answer

Wildcard to route to a controller

I am absolutely novice with Laravel and I am currently learning the routes feature of the Framework. I want to know if it is possible to do like we can do with ASP.NET that is to redirect to a Controller written in the URL. Actually, to do something…
Victor Castro
  • 1,232
  • 21
  • 40
0
votes
1 answer

Laravel Controller another function is being called

I'm getting ErrorException in ProjectController.php line 41: Trying to get property of non-object I am calling delete_project() inside my controller but it seems Laravel is also calling the get_project($variable_here)…
mariozawa
  • 1,504
  • 1
  • 11
  • 14
0
votes
1 answer

scanning routes under specific namespace in Laravel annotations

I have controllers under the Panel namespace in "App\Htpp\Controllers" directory, so my namespace is : App\Http\Controllers\Panel I overrided the routeScans() function like below, but did not help! public function routeScans() { $classes =…
0
votes
1 answer

Request goes to each middleware laravel 5.2

I'm using laravel 5.2 with entrust/zizaco. When the user authenticates, they have the role admin, but when I put dd(1) in my app_user role middleware the request enters it !! The request also enters admin, and business_owner role middlewares. And…
0
votes
1 answer

Laravel use Locale Code for Language Prefix

What's the simplest way to use a prefix for the language (en, de, fr,...) on my URLS. It should also not throw an error when no prefix is set, then it should fallback to french. Laravel 5.3
xTheWolf
  • 1,756
  • 4
  • 18
  • 43
0
votes
1 answer

Redirect is not working in LogSuccessfulLogin handle in Laravel Auth

I am using Laravel 5.3 in which using Authfor user controller. So basically i create a Listener for Auth Event 'Illuminate\Auth\Events\Login' => [ 'App\Listeners\LogSuccessfulLogin', ], and in LogSuccessfulLogin handle() function redirecting…
0
votes
1 answer

Laravel controller routing broken after upgrading from 4.1 to 4.2

I have a laravel project which runs perfectly fine on laravel 4.1.31 , now my challenge was to migrate that project to higher version say 5.3. I started following the upgrade guide provided by Laravel on this link below…
BlackBurn027
  • 592
  • 4
  • 20
0
votes
1 answer

Routing issues with Post in Form

Error with Post Route in form. Post clicking on "submit" button its taking me to page. NotFoundHttpException in RouteCollection.php line 161: in RouteCollection.php line 161 at RouteCollection->match(object(Request)) in Router.php line 780 …
Arun3x3
  • 193
  • 1
  • 7
  • 17
1 2 3
99
100