working on it ...

Filters

Explore Public Snippets

Sort by

Found 1 snippet

    public by markcl  2826  0  5  0

    Laravel 4 Sentry Redirect Users to Dasboard Snippet

    $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');

    List Complete ( 1 snippet total )

    Cannot find what you were looking for?
    Ask the Snip2Code Community

    • Public Snippets
    • Channels Snippets