app/Exceptions/LoginInvalidEsception.php
/**
     * HTTP answer to exception
     * @return array
     */
HTTP answer to exception
@return array
HTTP answer to exception @return array
public function render()
    {
        return response()->json([
            'error'   => class_basename($this),
            'message' => 'Email and password don\'t match.',
        ], 400);
    }
public function render ( ) { return response ( ) -> json ( [ 'error' => class_basename ( $ this ) , 'message' => 'Email and password don\'t match.' , ] , 400 ) ; }
HTTP answer to exception
 @return array
HTTP answer to exception @return array