Setting::where('key', 'app_name')->value('value'), ]); } public function check(Request $request) { $request->validate([ 'customer_code' => 'required|string|exists:customers,code' ]); } }