Update BaseMiddleware.php
This commit is contained in:
		
							parent
							
								
									3c8447288d
								
							
						
					
					
						commit
						ea88866ab3
					
				| 
						 | 
				
			
			@ -57,7 +57,7 @@ abstract class BaseMiddleware
 | 
			
		|||
     */
 | 
			
		||||
    protected function respond($event, $error, $status, $payload = [])
 | 
			
		||||
    {
 | 
			
		||||
        $response = $this->events->fire($event, $payload, true);
 | 
			
		||||
        $response = $this->events->dispatch($event, $payload, true);
 | 
			
		||||
 | 
			
		||||
        return $response ?: $this->response->json(['error' => $error], $status);
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user