user()->isAdmin(); } public function rules() { return [ // 'name' => 'unique:designs,name,'.$this->designs->name.',id,company_id,'.auth()->user()->companyId(), ]; } }