Exemplo n.º 1
0
 /**
  * Display All the Programs
  * @param  SupportprogramsApplication   $AppModel The Supportprograms model
  * @return \Illuminate\View\View            the Supportprograms index view index.blade.php
  */
 public function index(SupportprogramsApplication $AppModel)
 {
     // get an instance of the Supportprograms model
     // get our programs with pagination with 20 program per page
     $programs = $AppModel->paginate(20);
     // return the index view of the Supportprograms module with a collection of programs objects
     return view('supportprograms::index', compact('programs'));
 }