app/controllers/AdminController.php
/**
	 * Display a listing of the resource.
	 *
	 * @return Response
	 */
Display a listing of the resource.
@return Response
Display a listing of the resource . @return Response
public function index()
	{
		if(!Auth::check() || !Auth::user()->admin) return Redirect::route('home.index');
        else return View::make('admin.index')->with('users', User::all());
	}
public function index ( ) { if ( ! Auth :: check ( ) || ! Auth :: user ( ) -> admin ) return Redirect :: route ( 'home.index' ) ; else return View :: make ( 'admin.index' ) -> with ( 'users' , User :: all ( ) ) ; }
Display a listing of the resource.
Display a listing of the resource .