Conditions | 4 |
Paths | 8 |
Total Lines | 26 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
41 | public function handle() |
||
42 | { |
||
43 | $this->info("Removing original User code."); |
||
44 | $f = base_path('app/User.php'); |
||
|
|||
45 | if (file_exists($f)) { |
||
46 | unlink($f); |
||
47 | } |
||
48 | $f = base_path('database/migrations/2014_10_12_000000_create_users_table.php'); |
||
49 | if (file_exists($f)) { |
||
50 | unlink($f); |
||
51 | } |
||
52 | |||
53 | foreach (Modelarium::getDirectiveLaravelLibraries() as $plugin) { |
||
54 | $this->call('vendor:publish', [ |
||
55 | '--provider' => "$plugin\\Laravel\\ServiceProvider", |
||
56 | '--tag' => "schema", |
||
57 | '--force' => true |
||
58 | ]); |
||
59 | |||
60 | $this->call('vendor:publish', [ |
||
61 | '--provider' => "$plugin\\Laravel\\ServiceProvider", |
||
62 | '--tag' => "schemabase", |
||
63 | ]); |
||
64 | } |
||
65 | |||
66 | $this->info("Setup done."); |
||
67 | } |
||
69 |