Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Aug 19, 2023
1 parent 50a83ef commit 0e4d1bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/LaravelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ public function boot()
*/
$preset = $app->make('orchestra.canvas');

if (\defined('TESTBENCH_WORKING_PATH') || $app->runningUnitTests()) {
if (
\defined('TESTBENCH_WORKING_PATH')
|| $app->runningUnitTests()
|| file_exists($app->basePath('canvas.yaml'))
) {
$artisan->add(new Commands\Channel($preset));
$artisan->add(new Commands\Component($preset));
$artisan->add(new Commands\Console($preset));
Expand Down

0 comments on commit 0e4d1bd

Please sign in to comment.