app/Http/Controllers/ControllerSubject.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()
    {
        $subjects = Project::all();
        return view('pages.subjects.index')->with(['subjects'=>$subjects]);
    }
public function index ( ) { $ subjects = Project :: all ( ) ; return view ( 'pages.subjects.index' ) -> with ( [ 'subjects' => $ subjects ] ) ; }
Display a listing of the resource.
Display a listing of the resource .