Mercurial > packages > magicforger
annotate src/MagicForgerServiceProvider.php @ 5:b0b2e79ad8e6
Not exatly sure what was changed but commiting to it :)
| author | luka |
|---|---|
| date | Thu, 12 Oct 2023 19:41:04 -0400 |
| parents | a20439b1c9d3 |
| children | 769a17898cc0 |
| 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; |
| 5 | 9 use Wizzard\MagicForger\Generator\Requests\RequestGenerator; |
| 10 use Wizzard\MagicForger\Generator\Requests\StoreRequestGenerator; | |
| 11 use Wizzard\MagicForger\Generator\Requests\UpdateRequestGenerator; | |
| 12 use Wizzard\MagicForger\Generator\Route\RouteGenerator; | |
|
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
|
13 |
| 2 | 14 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
|
15 { |
| 2 | 16 /** |
| 17 * Bootstrap any package services. | |
| 18 */ | |
| 19 public function boot(): void | |
| 20 { | |
| 21 if ($this->app->runningInConsole()) { | |
| 22 $this->commands([ | |
|
3
6468684362c2
It works! Created a controller, no update insert but it works
luka
parents:
2
diff
changeset
|
23 Generator::class, |
| 2 | 24 ControllerGenerator::class, |
| 4 | 25 ModelGenerator::class, |
| 5 | 26 RequestGenerator::class, |
| 27 StoreRequestGenerator::class, | |
| 28 UpdateRequestGenerator::class, | |
| 29 RouteGenerator::class, | |
| 2 | 30 ]); |
| 31 } | |
|
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
|
32 } |
|
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
|
33 } |
