You can use a route filter for this. For example
Route::filter('banned', function()
{
if ( Auth::user()->isBanned )
{
return Redirect::to('/banned')->with('user', Auth::user());
}
});
// Model
public function isBanned()
{
// check if banned here
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community