Esempio n. 1
0
 /**
  * Show the list of the resources
  * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function index()
 {
     $model = ucfirst(str_singular(resourceName()));
     $class = $this->getModelClassFromRoute();
     return view($this->viewPrefix . resourcePrefix(), ["data" => $class::all(), "model" => $model]);
 }
Esempio n. 2
0
 public static function route_to_store()
 {
     return resourcePrefix() . '.store';
 }