diff --git a/src/Configuration.php b/src/Configuration.php index dbfcdcae..c70f1728 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -7,18 +7,6 @@ trait Configuration { - /** - * @deprecated deprecated since version 2.1 - * set the default path for the forms homepage. - */ - protected Closure | string $boltPrefix = 'bolt'; - - /** - * @deprecated deprecated since version 2.1 - * the middleware you want to apply on all the forms routes - */ - protected array $boltMiddleware = ['web']; - /** * you can overwrite any model and use your own */ @@ -35,81 +23,20 @@ trait Configuration protected array $hideResources = []; - /** - * @deprecated deprecated since version 2.1 - * default mailable for new entries - */ - protected string $defaultMailable = \LaraZeus\Bolt\Mail\FormSubmission::class; - /** * available extensions, leave it null to disable the extensions tab from the forms */ protected ?array $extensions = null; - /** - * where to upload all files when using the file upload field - * - * @deprecated deprecated since version 2.1 - */ - protected Closure | string $uploadDisk = 'public'; - - /** - * the directory name - * - * @deprecated deprecated since version 2.1 - */ - protected Closure | string $uploadDirectory = 'forms'; - /** * the resources navigation group */ protected Closure | string $navigationGroupLabel = 'Bolt'; - /* - * @deprecated deprecated since version 2.1 - */ - protected Closure | string | null $domain = null; - protected Closure | bool $showNavigationBadges = true; protected array $showNavigationBadgesArray = []; - /* - * @deprecated deprecated since version 2.1 - */ - public function boltPrefix(Closure | string $prefix): static - { - $this->boltPrefix = $prefix; - - return $this; - } - - /* - * @deprecated deprecated since version 2.1 - */ - public function getBoltPrefix(): Closure | string - { - return $this->evaluate($this->boltPrefix); - } - - /* - * @deprecated deprecated since version 2.1 - */ - public function boltMiddleware(array $middleware): static - { - $this->boltMiddleware = $middleware; - - return $this; - } - - /* - * @deprecated deprecated since version 2.1 - */ - public function getMiddleware(): array - { - return $this->boltMiddleware; - } - public function boltModels(array $models): static { $this->boltModels = $models; @@ -130,42 +57,6 @@ public static function getModel(string $model): string )[$model]; } - /* - * @deprecated deprecated since version 2.1 - */ - public function uploadDisk(Closure | string $disk): static - { - $this->uploadDisk = $disk; - - return $this; - } - - /* - * @deprecated deprecated since version 2.1 - */ - public function getUploadDisk(): Closure | string - { - return $this->evaluate($this->uploadDisk); - } - - /* - * @deprecated deprecated since version 2.1 - */ - public function uploadDirectory(Closure | string $dir): static - { - $this->uploadDirectory = $dir; - - return $this; - } - - /* - * @deprecated deprecated since version 2.1 - */ - public function getUploadDirectory(): Closure | string - { - return $this->evaluate($this->uploadDirectory); - } - public function navigationGroupLabel(Closure | string $label): static { $this->navigationGroupLabel = $label; @@ -178,24 +69,6 @@ public function getNavigationGroupLabel(): Closure | string return $this->evaluate($this->navigationGroupLabel); } - /* - * @deprecated deprecated since version 2.1 - */ - public function defaultMailable(string $mailable): static - { - $this->defaultMailable = $mailable; - - return $this; - } - - /* - * @deprecated deprecated since version 2.1 - */ - public function getDefaultMailable(): string - { - return $this->defaultMailable; - } - public function extensions(?array $extensions): static { $this->extensions = $extensions; @@ -208,24 +81,6 @@ public function getExtensions(): ?array return $this->extensions; } - /* - * @deprecated deprecated since version 2.1 - */ - public function domain(Closure | string | null $domain): static - { - $this->domain = $domain; - - return $this; - } - - /* - * @deprecated deprecated since version 2.1 - */ - public function getDomain(): Closure | string | null - { - return $this->evaluate($this->domain); - } - public function hideResources(array $resources): static { $this->hideResources = $resources;