by
1,034 21
0
5
2,697
0
Top 1% !
Popular
Famous
Specified
OpenSource
Popularity: 5641st place
Created
Modified Aug 11, 2013

Published on:

No tags for this snippet yet.
Architecturex86_64
LicenseMIT_X11
OSWindows
Windows VersionWindows7

Laravel 4 Sentry Redirect Users to Dasboard Snippet

Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/7568/Laravel-4-Sentry-Redirect-Users-to-Dasbo?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
$jobseekers = Sentry::getGroupProvider()->findByName('Jobseekers'); $employers = Sentry::getGroupProvider()->findByName('Employers'); if($user->inGroup($jobseekers)) return Redirect::to('employerDashboard'); // If user is in employers group, go to Jobhunter's Dashboard if($user->inGroup($employers)) return Redirect::to('employerDashboard');
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus