Mercurial > packages > magicforger
annotate src/MagicForgerServiceProvider.php @ 4:a20439b1c9d3
Added Model generator and other updates.
| author | luka |
|---|---|
| date | Tue, 27 Jun 2023 20:16:55 -0400 |
| parents | 6468684362c2 |
| children | b0b2e79ad8e6 |
| rev | line source |
|---|---|
| 2 | 1 <?php |
|
1
ca36acd2bef2
Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff
changeset
|
2 |
|
ca36acd2bef2
Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff
changeset
|
3 namespace Wizzard\MagicForger; |
|
ca36acd2bef2
Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff
changeset
|
4 |
|
ca36acd2bef2
Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff
changeset
|
5 use Illuminate\Support\ServiceProvider; |
|
3
6468684362c2
It works! Created a controller, no update insert but it works
luka
parents:
2
diff
changeset
|
6 use Wizzard\MagicForger\Generator\Generator; |
|
6468684362c2
It works! Created a controller, no update insert but it works
luka
parents:
2
diff
changeset
|
7 use Wizzard\MagicForger\Generator\Controller\ControllerGenerator; |
| 4 | 8 use Wizzard\MagicForger\Generator\Model\ModelGenerator; |
|
1
ca36acd2bef2
Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff
changeset
|
9 |
| 2 | 10 class MagicForgerServiceProvider extends ServiceProvider |
|
1
ca36acd2bef2
Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff
changeset
|
11 { |
| 2 | 12 /** |
| 13 * Bootstrap any package services. | |
| 14 */ | |
| 15 public function boot(): void | |
| 16 { | |
| 17 if ($this->app->runningInConsole()) { | |
| 18 $this->commands([ | |
|
3
6468684362c2
It works! Created a controller, no update insert but it works
luka
parents:
2
diff
changeset
|
19 Generator::class, |
| 2 | 20 ControllerGenerator::class, |
| 4 | 21 ModelGenerator::class, |
| 2 | 22 ]); |
| 23 } | |
|
1
ca36acd2bef2
Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff
changeset
|
24 } |
|
ca36acd2bef2
Have a base going, there is definitly a lot wrong with some of the files and the general structure but overall, it's a starting point
luka
parents:
diff
changeset
|
25 } |
