/** * 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]); }
public static function route_to_store() { return resourcePrefix() . '.store'; }