Encore\Admin\Commands\InstallCommand::createExampleController PHP Метод

createExampleController() публичный Метод

Create HomeController.
public createExampleController ( ) : void
Результат void
    public function createExampleController()
    {
        $exampleController = $this->directory . '/Controllers/ExampleController.php';
        $contents = $this->getStub('ExampleController');
        $this->laravel['files']->put($exampleController, str_replace('DummyNamespace', Admin::controllerNamespace(), $contents));
        $this->line('<info>ExampleController file was created:</info> ' . str_replace(base_path(), '', $exampleController));
    }