app/Http/Controllers/Admin/GraduetController.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 (!session()->get('schtoken')) {
            return redirect()->to('adminpages/login');
        }
        $data = [
            'data' => Graduet::all(),
            'session' => session()->get('schuser')
        ];
        return view('admin.pages.graduet.index', $data);
    }
public function index ( ) { if ( ! session ( ) -> get ( 'schtoken' ) ) { return redirect ( ) -> to ( 'adminpages/login' ) ; } $ data = [ 'data' => Graduet :: all ( ) , 'session' => session ( ) -> get ( 'schuser' ) ] ; return view ( 'admin.pages.graduet.index' , $ data ) ; }
Display a listing of the resource.
Display a listing of the resource .