/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //load the home page of all models for resume entry
     $educations = Education::orderBy('graduationyear', 'desc')->get();
     $skillcategories = SkillCategory::orderBy('title', 'asc')->get();
     $jobs = Job::orderBy('currentlyemployed', 'desc')->orderBy('enddate', 'desc')->get();
     $article = Article::findOrFail('1');
     //get the summary article with id of 1
     return view('admin.index', compact('educations', 'jobs', 'skillcategories', 'article'));
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $education = Education::findOrFail($id);
     $education->delete();
     return redirect('educations')->with('success', 'Successfully deleted education!');
 }