user()->can('edit', $this->company); } public function rules() { return [ 'logo' => 'mimes:jpeg,jpg,png,gif|max:10000', // max 10000kb 'industry_id' => 'integer|nullable', 'size_id' => 'integer|nullable', 'country_id' => 'integer|nullable', 'work_email' => 'email|nullable', ]; } }