*/ protected $dontFlash = [ 'current_password', 'password', 'password_confirmation', ]; /** * Register the exception handling callbacks for the application. */ public function register(): void { // 404.. $this->renderable(function (NotFoundHttpException $e, $request) { if ($request->is('api/*')) { return response()->noContent(404); } }); } }