app/Http/Controllers/Backend/HomeController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        if(Auth::check()){
            if(Auth::user()->role < 90){
                Auth::logout();
                return redirect()->intended('/admin/signin?role=lessadmin');
            } 
        }else{
            return redirect()->intended('/admin/signin?auth=fail');
        }
        return view('admin.home');
    }
public function index ( ) { if ( Auth :: check ( ) ) { if ( Auth :: user ( ) -> role < 90 ) { Auth :: logout ( ) ; return redirect ( ) -> intended ( '/admin/signin?role=lessadmin' ) ; } } else { return redirect ( ) -> intended ( '/admin/signin?auth=fail' ) ; } return view ( 'admin.home' ) ; }
Display a listing of the resource.
Display a listing of the resource .