Skip to content

Commit 6705c38

Browse files
committed
Install laravel ui for auth by default
1 parent d4359f5 commit 6705c38

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"intervention/imagecache": "^2.3",
2222
"laravelcollective/html": ">=5.5",
2323
"overtrue/pinyin": "^4.0",
24-
"alexstack/google-recaptcha-to-any-form": "^1.4"
24+
"alexstack/google-recaptcha-to-any-form": "^1.4",
25+
"laravel/ui": ">=1.0"
2526
},
2627
"autoload": {
2728
"psr-4": {

src/Console/Commands/LaravelCMS.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,18 @@ public function forBrandNewProject()
404404

405405
$this->copyCmsFiles($source_files, $target_dir, $backup_dir, $ignore_files);
406406
}
407+
408+
if (file_exists(base_path('resources/views/auth/login.blade.php'))) {
409+
$this->call('ui bootstrap', [
410+
'--auth' => true,
411+
]);
412+
413+
$this->call('migrate');
414+
415+
return true;
416+
}
417+
418+
return false;
407419
}
408420

409421
public function rewriteConfig($table_prefix, $app_locale)

0 commit comments

Comments
 (0)