Skip to content

Commit 74d6732

Browse files
committed
graciosly fail when trying to install devtools on L10
1 parent cc61e00 commit 74d6732

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/app/Console/Commands/Addons/RequireDevTools.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ class RequireDevTools extends Command
3030
* @var array
3131
*/
3232
public static $addon = [
33-
'name' => 'DevTools',
33+
'name' => 'DevTools',
3434
'description' => [
3535
'Helps generate models, migrations, operations and CRUDs',
3636
],
37-
'path' => 'vendor/backpack/devtools',
37+
'path' => 'vendor/backpack/devtools',
3838
'command' => 'backpack:require:devtools',
3939
];
4040

@@ -45,6 +45,15 @@ class RequireDevTools extends Command
4545
*/
4646
public function handle()
4747
{
48+
// Prevent installations in laravel 10 as it wouldn't properly work. Waiting for Blueprint L10 support.
49+
if (app()->version() >= 10) {
50+
$this->newLine();
51+
$this->line(sprintf('Support for Laravel 10 is comming soon. Sorry for the trouble.'), 'fg=red');
52+
$this->newLine();
53+
54+
return;
55+
}
56+
4857
// Check if it is installed
4958
if ($this->isInstalled()) {
5059
$this->newLine();

0 commit comments

Comments
 (0)