1 | <?php |
||
7 | class L6MakeAdminLteCommand extends Command |
||
8 | { |
||
9 | protected $signature = 'make:adminlte {--views : Only scaffold the authentication views}{--force : Overwrite existing views by default}'; |
||
10 | |||
11 | protected $description = 'Scaffold basic AdminLTE login and registration views and routes'; |
||
12 | |||
13 | protected $adminLteViews = [ |
||
14 | 'auth/login.stub' => 'auth/login.blade.php', |
||
15 | 'auth/register.stub' => 'auth/register.blade.php', |
||
16 | 'auth/passwords/email.stub' => 'auth/passwords/email.blade.php', |
||
17 | 'auth/passwords/reset.stub' => 'auth/passwords/reset.blade.php', |
||
18 | 'home.stub' => 'home.blade.php', |
||
19 | ]; |
||
20 | |||
21 | /** |
||
22 | * Execute the console command. |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | public function handle() |
||
42 | |||
43 | /** |
||
44 | * Create the directories for the files. |
||
45 | * |
||
46 | * @return void |
||
47 | */ |
||
48 | protected function createDirectories() |
||
54 | |||
55 | protected function exportViews() |
||
62 | |||
63 | /** |
||
64 | * Get full view path relative to the app's configured view path. |
||
65 | * |
||
66 | * @param string $path |
||
67 | * @return string |
||
68 | */ |
||
69 | protected function getViewPath($path) |
||
75 | } |
||
76 |