header('X-Inertia')) { return back()->with('error', 'Cannot deploy an empty deployment script.'); } throw ValidationException::withMessages([ 'deployment_script' => 'Deployment script cannot be empty.', ]); } }