karyawan; return Karyawan::getUpdateRulesForId($id); } /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return Auth::user()->can('update-karyawan'); } }