user()->is_admin; } /** @return array */ public function rules(): array { return [ 'media_path' => 'string|required|path.valid', ]; } }