app/Http/Controllers/ViewController.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(Request $request)
    {
        $resources = [];
        if($request->session()->exists('resources')) {
            $resources = $request->session()->get('resources');
        }
        $data = [];
        $data['resources'] = $resources;
        return view("views.index", $data);
    }
public function index ( Request $ request ) { $ resources = [ ] ; if ( $ request -> session ( ) -> exists ( 'resources' ) ) { $ resources = $ request -> session ( ) -> get ( 'resources' ) ; } $ data = [ ] ; $ data [ 'resources' ] = $ resources ; return view ( " views.index " , $ data ) ; }
Display a listing of the resource.
Display a listing of the resource .