Skip to content

Commit

Permalink
Fixed make:adminlte command on Laravel 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroennoten committed Aug 14, 2016
1 parent 274d2a6 commit 7cce4df
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/Console/MakeAdminLteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ class MakeAdminLteCommand extends MakeAuthCommand

protected $description = 'Scaffold basic AdminLTE login and registration views and routes';

protected $views = [
'auth/emails/password.stub' => 'auth/emails/password.blade.php',
'layouts/app.stub' => 'layouts/app.blade.php',
'welcome.stub' => 'welcome.blade.php',
];

protected $adminLteViews = [
'auth/login.stub' => 'auth/login.blade.php',
'auth/register.stub' => 'auth/register.blade.php',
Expand All @@ -31,11 +25,10 @@ protected function exportViews()
parent::exportViews();

foreach ($this->adminLteViews as $key => $value) {
$path = base_path('resources/views/'.$value);

$this->line('<info>Created View:</info> '.$path);

copy(__DIR__.'/stubs/make/views/'.$key, $path);
copy(
__DIR__ . '/stubs/make/views/' . $key,
base_path('resources/views/' . $value)
);
}
}
}

0 comments on commit 7cce4df

Please sign in to comment.