-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3641294
commit 0215ed2
Showing
5 changed files
with
176 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,13 @@ class HomeController | |
|
||
public function index(){ | ||
|
||
$user = User::create([ | ||
"name" => "new user", | ||
"email" => "[email protected]", | ||
]); | ||
|
||
return new Response([ | ||
"data" => $user, | ||
"msg" => "hello there from home controller", | ||
"status" => "success request", | ||
]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
namespace App\Providers; | ||
|
||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; | ||
use Illuminate\Support\Facades\Event; | ||
|
||
class EventServiceProvider extends ServiceProvider | ||
{ | ||
/** | ||
* The event to listener mappings for the application. | ||
* | ||
* @var array<class-string, array<int, class-string>> | ||
*/ | ||
protected $listen = [ | ||
// Registered::class => [ | ||
// SendEmailVerificationNotification::class, | ||
// ], | ||
]; | ||
|
||
/** | ||
* Register any events for your application. | ||
* | ||
* @return void | ||
*/ | ||
public function boot() | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Determine if events and listeners should be automatically discovered. | ||
* | ||
* @return bool | ||
*/ | ||
public function shouldDiscoverEvents() | ||
{ | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,118 @@ | ||
<?php return array ( | ||
'providers' => | ||
array ( | ||
0 => 'Carbon\\Laravel\\ServiceProvider', | ||
1 => 'App\\Providers\\AppServiceProvider', | ||
2 => 'App\\Providers\\RouteServiceProvider', | ||
0 => 'Illuminate\\Foundation\\Providers\\FoundationServiceProvider', | ||
1 => 'Illuminate\\Filesystem\\FilesystemServiceProvider', | ||
2 => 'Illuminate\\Database\\DatabaseServiceProvider', | ||
3 => 'Illuminate\\Cache\\CacheServiceProvider', | ||
4 => 'Illuminate\\Encryption\\EncryptionServiceProvider', | ||
5 => 'Carbon\\Laravel\\ServiceProvider', | ||
6 => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
7 => 'App\\Providers\\AppServiceProvider', | ||
8 => 'App\\Providers\\EventServiceProvider', | ||
9 => 'App\\Providers\\RouteServiceProvider', | ||
), | ||
'eager' => | ||
array ( | ||
0 => 'Carbon\\Laravel\\ServiceProvider', | ||
1 => 'App\\Providers\\AppServiceProvider', | ||
2 => 'App\\Providers\\RouteServiceProvider', | ||
0 => 'Illuminate\\Foundation\\Providers\\FoundationServiceProvider', | ||
1 => 'Illuminate\\Filesystem\\FilesystemServiceProvider', | ||
2 => 'Illuminate\\Database\\DatabaseServiceProvider', | ||
3 => 'Illuminate\\Encryption\\EncryptionServiceProvider', | ||
4 => 'Carbon\\Laravel\\ServiceProvider', | ||
5 => 'App\\Providers\\AppServiceProvider', | ||
6 => 'App\\Providers\\EventServiceProvider', | ||
7 => 'App\\Providers\\RouteServiceProvider', | ||
), | ||
'deferred' => | ||
array ( | ||
'cache' => 'Illuminate\\Cache\\CacheServiceProvider', | ||
'cache.store' => 'Illuminate\\Cache\\CacheServiceProvider', | ||
'cache.psr6' => 'Illuminate\\Cache\\CacheServiceProvider', | ||
'memcached.connector' => 'Illuminate\\Cache\\CacheServiceProvider', | ||
'Illuminate\\Cache\\RateLimiter' => 'Illuminate\\Cache\\CacheServiceProvider', | ||
'Illuminate\\Foundation\\Console\\AboutCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Cache\\Console\\ClearCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Cache\\Console\\ForgetCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\ClearCompiledCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\ConfigCacheCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\ConfigClearCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\DbCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\MonitorCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\PruneCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\ShowCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\TableCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\WipeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\DownCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\EnvironmentCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\EventCacheCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\EventClearCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\EventListCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\KeyGenerateCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\OptimizeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\OptimizeClearCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\PackageDiscoverCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\RouteCacheCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\RouteClearCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\RouteListCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\DumpCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\Seeds\\SeedCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Console\\Scheduling\\ScheduleFinishCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Console\\Scheduling\\ScheduleListCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Console\\Scheduling\\ScheduleRunCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Console\\Scheduling\\ScheduleClearCacheCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Console\\Scheduling\\ScheduleTestCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Console\\Scheduling\\ScheduleWorkCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\ShowModelCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\UpCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Cache\\Console\\CacheTableCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\CastMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\ChannelMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\ComponentMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\ConsoleMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Routing\\Console\\ControllerMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\DocsCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\EventGenerateCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\EventMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\ExceptionMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\Factories\\FactoryMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\JobMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\ListenerMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\MailMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Routing\\Console\\MiddlewareMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\ModelMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\NotificationMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\ObserverMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\PolicyMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\ProviderMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\RequestMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\ResourceMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\RuleMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\ScopeMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\Seeds\\SeederMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\ServeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\StubPublishCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\TestMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Foundation\\Console\\VendorPublishCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'migrator' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'migration.repository' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'migration.creator' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\Migrations\\MigrateCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\Migrations\\FreshCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\Migrations\\InstallCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\Migrations\\RefreshCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\Migrations\\ResetCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\Migrations\\RollbackCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\Migrations\\StatusCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'Illuminate\\Database\\Console\\Migrations\\MigrateMakeCommand' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
'composer' => 'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider', | ||
), | ||
'when' => | ||
array ( | ||
'Illuminate\\Cache\\CacheServiceProvider' => | ||
array ( | ||
), | ||
'Run\\Steps\\Console\\Providers\\ConsoleSupportServiceProvider' => | ||
array ( | ||
), | ||
), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters