close #272 Enhancement: Newest Expenses - Payments: Recent payments not showing on the top
This commit is contained in:
		
							
								
								
									
										30
									
								
								app/Listeners/Updates/Version1211.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								app/Listeners/Updates/Version1211.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| <?php | ||||
|  | ||||
| namespace App\Listeners\Updates; | ||||
|  | ||||
| use App\Events\UpdateFinished; | ||||
| use Artisan; | ||||
|  | ||||
| class Version1211 extends Listener | ||||
| { | ||||
|     const ALIAS = 'core'; | ||||
|  | ||||
|     const VERSION = '1.2.11'; | ||||
|  | ||||
|     /** | ||||
|      * Handle the event. | ||||
|      * | ||||
|      * @param  $event | ||||
|      * @return void | ||||
|      */ | ||||
|     public function handle(UpdateFinished $event) | ||||
|     { | ||||
|         // Check if should listen | ||||
|         if (!$this->check($event)) { | ||||
|             return; | ||||
|         } | ||||
|  | ||||
|         // Update database | ||||
|         Artisan::call('migrate', ['--force' => true]); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user