user()->can('edit', $this->company); } public function rules() { return [ 'logo' => 'mimes:jpeg,jpg,png,gif|max:10000', // max 10000kb 'name' => 'required', ]; } }