File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Illuminate/Foundation/Console Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public function handle()
64
64
file_get_contents (__DIR__ .'/stubs/maintenance-mode.stub ' )
65
65
);
66
66
67
- $ this ->laravel ->get ('events ' )->dispatch (MaintenanceModeEnabled::class );
67
+ $ this ->laravel ->get ('events ' )->dispatch (new MaintenanceModeEnabled () );
68
68
69
69
$ this ->components ->info ('Application is now in maintenance mode. ' );
70
70
} catch (Exception $ e ) {
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public function handle()
55
55
unlink (storage_path ('framework/maintenance.php ' ));
56
56
}
57
57
58
- $ this ->laravel ->get ('events ' )->dispatch (MaintenanceModeDisabled::class );
58
+ $ this ->laravel ->get ('events ' )->dispatch (new MaintenanceModeDisabled () );
59
59
60
60
$ this ->components ->info ('Application is now live. ' );
61
61
} catch (Exception $ e ) {
You can’t perform that action at this time.
0 commit comments