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