![]() 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/demo.intellicart.co/vendor/orchestra/canvas/ |
#!/usr/bin/env php <?php $workingPath = getcwd(); define('CANVAS_WORKING_PATH', $workingPath); require $_composer_autoload_path ?? __DIR__.'/vendor/autoload.php'; $config = ['preset' => Orchestra\Canvas\Canvas::presetFromEnvironment($workingPath)]; if (file_exists($workingPath.DIRECTORY_SEPARATOR.'canvas.yaml')) { $config = Symfony\Component\Yaml\Yaml::parseFile($workingPath.DIRECTORY_SEPARATOR.'canvas.yaml'); } $files = new Illuminate\Filesystem\Filesystem(); $preset = Orchestra\Canvas\Canvas::preset( $config, $workingPath, $files ); $app = new Symfony\Component\Console\Application('Canvas for Laravel'); $app->setVersion(Composer\InstalledVersions::getPrettyVersion('orchestra/canvas')); Illuminate\Support\Collection::make([ Orchestra\Canvas\Commands\Channel::class => true, Orchestra\Canvas\Commands\Component::class => true, Orchestra\Canvas\Commands\Console::class => true, Orchestra\Canvas\Commands\ConsoleGenerator::class => true, Orchestra\Canvas\Commands\Database\Cast::class => true, Orchestra\Canvas\Commands\Database\Eloquent::class => true, Orchestra\Canvas\Commands\Database\Factory::class => true, Orchestra\Canvas\Commands\Database\Migration::class => true, Orchestra\Canvas\Commands\Database\Observer::class => true, Orchestra\Canvas\Commands\Database\Seeder::class => $preset->is('laravel'), Orchestra\Canvas\Commands\Event::class => true, Orchestra\Canvas\Commands\Exception::class => true, Orchestra\Canvas\Commands\Job::class => true, Orchestra\Canvas\Commands\Listener::class => true, Orchestra\Canvas\Commands\Mail::class => true, Orchestra\Canvas\Commands\Notification::class => true, Orchestra\Canvas\Commands\Policy::class => true, Orchestra\Canvas\Commands\Preset::class => ! file_exists("{$workingPath}/canvas.yaml"), Orchestra\Canvas\Commands\Provider::class => true, Orchestra\Canvas\Commands\Request::class => true, Orchestra\Canvas\Commands\Resource::class => true, Orchestra\Canvas\Commands\Routing\Controller::class => true, Orchestra\Canvas\Commands\Routing\Middleware::class => true, Orchestra\Canvas\Commands\Rule::class => true, Orchestra\Canvas\Commands\Testing::class => true, Orchestra\Canvas\Commands\StubPublish::class => true, Orchestra\Canvas\Commands\View::class => true, ])->filter(fn ($value) => $value === true) ->keys() ->each(fn ($command) => $app->add(new $command($preset))); $preset->addAdditionalCommands($app); $app->run();