19 lines
		
	
	
		
			313 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			313 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Jobs\Auth;
 | |
| 
 | |
| use App\Abstracts\Job;
 | |
| use App\Interfaces\Job\ShouldDelete;
 | |
| 
 | |
| class DeletePermission extends Job implements ShouldDelete
 | |
| {
 | |
|     public function handle(): bool
 | |
|     {
 | |
|         \DB::transaction(function () {
 | |
|             $this->model->delete();
 | |
|         });
 | |
| 
 | |
|         return true;
 | |
|     }
 | |
| }
 |