![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/rentpix.corals.io/vendor/orchestra/workbench/src/ |
<?php namespace Orchestra\Workbench; use BadMethodCallException; use Orchestra\Canvas\Core\Presets\Preset; class GeneratorPreset extends Preset { /** * Preset name. * * @return string */ public function name() { return 'workbench'; } /** * Get the path to the base working directory. * * @return string */ public function basePath() { return rtrim(Workbench::path(), DIRECTORY_SEPARATOR); } /** * Get the path to the source directory. * * @return string */ public function sourcePath() { return rtrim(Workbench::path('app'), DIRECTORY_SEPARATOR); } /** * Get the path to the testing directory. * * @throws \BadMethodCallException */ public function testingPath() { throw new BadMethodCallException('Generating test is not supported for [workbench] preset'); } /** * Get the path to the resource directory. * * @return string */ public function resourcePath() { return rtrim(Workbench::path('resources'), DIRECTORY_SEPARATOR); } /** * Get the path to the view directory. * * @return string */ public function viewPath() { return rtrim(Workbench::path('resources/views'), DIRECTORY_SEPARATOR); } /** * Get the path to the factory directory. * * @return string */ public function factoryPath() { return rtrim(Workbench::path('database/factories'), DIRECTORY_SEPARATOR); } /** * Get the path to the migration directory. * * @return string */ public function migrationPath() { return rtrim(Workbench::path('database/migrations'), DIRECTORY_SEPARATOR); } /** * Get the path to the seeder directory. */ public function seederPath(): string { return rtrim(Workbench::path('database/seeders'), DIRECTORY_SEPARATOR); } /** * Preset namespace. * * @return string */ public function rootNamespace() { return "Workbench\App\\"; } /** * Command namespace. * * @return string */ public function commandNamespace() { return "{$this->rootNamespace()}Console\\"; } /** * Model namespace. * * @return string */ public function modelNamespace() { return "{$this->rootNamespace()}Models\\"; } /** * Provider namespace. * * @return string */ public function providerNamespace() { return "{$this->rootNamespace()}Providers\\"; } /** * Database factory namespace. * * @return string */ public function factoryNamespace() { return "Workbench\Database\Factories\\"; } /** * Database seeder namespace. * * @return string */ public function seederNamespace() { return "Workbench\Database\Seeders\\"; } /** * Testing namespace. * * @throws \BadMethodCallException */ public function testingNamespace() { throw new BadMethodCallException('Generating test is not supported for [workbench] preset'); } /** * Preset has custom stub path. * * @return bool */ public function hasCustomStubPath() { return false; } }