remaining_words == -1 or Auth::user()->remaining_words > 0) { return $next($request); } return back()->with(['message' => 'Insufficient credits to create.', 'type' => 'error']); } }