app/Http/Controllers/TemplateController.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()
    {
        $years = Year::all();
        $activities = Activity::all();
        return view('bodycontent', compact('years'));
    }
public function index ( ) { $ years = Year :: all ( ) ; $ activities = Activity :: all ( ) ; return view ( 'bodycontent' , compact ( 'years' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .