![]() 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/canvas/src/Presets/ |
<?php namespace Orchestra\Canvas\Presets; class Laravel extends Preset { /** * Preset name. */ public function name(): string { return 'laravel'; } /** * Get the path to the source directory. */ public function sourcePath(): string { return implode('/', [$this->basePath(), $this->config('paths.src', 'app')]); } /** * Preset namespace. */ public function rootNamespace(): string { return $this->config['namespace'] ?? 'App'; } /** * Command namespace. * * @return string */ public function commandNamespace(): string { return $this->config('console.namespace', $this->rootNamespace().'\Console\Commands'); } /** * Model namespace. */ public function modelNamespace(): string { return $this->config('model.namespace', $this->rootNamespace().'\Models'); } /** * Provider namespace. */ public function providerNamespace(): string { return $this->config('provider.namespace', $this->rootNamespace().'\Providers'); } /** * Testing namespace. */ public function testingNamespace(): string { return $this->config('testing.namespace', 'Tests'); } /** * Get custom stub path. */ public function getCustomStubPath(): ?string { return sprintf('%s/%s', $this->basePath(), 'stubs'); } }