Devise\Models\Scaffolding\Types\CrudScaffolding::setViewFiles PHP Method

setViewFiles() protected method

Sets the view files for this scaffold type
protected setViewFiles ( ) : void;
return void;
    protected function setViewFiles()
    {
        $scaffoldSrcBase = base_path() . '/vendor/devisephp/cms/src/scaffolding/crud/views/';
        $viewBase = base_path() . '/resources/views/admin/' . $this->constants['viewsDirectory'] . '/';
        $this->viewFiles = [$scaffoldSrcBase . 'admin/_form-fields.txt' => $viewBase . '_form-fields.blade.php', $scaffoldSrcBase . 'admin/create.txt' => ["file_name" => "admin." . $this->constants['snakeCasePlural'] . ".create", "human_name" => "Admin Create " . $this->constants['pluralCase'], "extends" => "devise::admin.layouts.master", "view" => $viewBase . 'create.blade.php'], $scaffoldSrcBase . 'admin/edit.txt' => ["file_name" => "admin." . $this->constants['snakeCasePlural'] . ".edit", "human_name" => "Admin Edit " . $this->constants['pluralCase'], "extends" => "devise::admin.layouts.master", "view" => $viewBase . 'edit.blade.php', "vars" => [$this->constants['singularVar'] => [$this->constants['namespace'] . '\\' . $this->constants['className'] . '\\' . $this->constants['className'] . 'Repository.get' . $this->constants['modelName'] => ['{params.' . $this->constants['snakeCase'] . 'id}']]]], $scaffoldSrcBase . 'admin/index.txt' => ["file_name" => "admin." . $this->constants['snakeCasePlural'] . ".index", "human_name" => "Admin " . $this->constants['pluralCase'] . " Index", "extends" => "devise::admin.layouts.master", "view" => $viewBase . 'index.blade.php', "vars" => [$this->constants['pluralVar'] => $this->constants['namespace'] . '\\' . $this->constants['className'] . '\\' . $this->constants['className'] . 'Repository.getAll' . $this->constants['className']]]];
    }