app/Exceptions/Handler.php
/**
     * Render an exception into an HTTP response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Throwable  $exception
     * @return \Symfony\Component\HttpFoundation\Response
     *
     * @throws \Throwable
     */
Render an exception into an HTTP response.

@throws \Throwable
Render an exception into an HTTP response . @throws \ Throwable
public function render($request, Throwable $exception)
    {
        return response()->json([
            'BERHASIL' => false,
            'PESAN' => 'Gagal Menjalankan Request'
        ], 401);
    }
public function render ( $ request , Throwable $ exception ) { return response ( ) -> json ( [ 'BERHASIL' => false , 'PESAN' => 'Gagal Menjalankan Request' ] , 401 ) ; }
Render an exception into an HTTP response.
Render an exception into an HTTP response .