36 lines
759 B
PHP
36 lines
759 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Rules\RequiredIfAny;
|
|
use App\Rules\Uniqueish;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Exception;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\Storage;
|
|
use PDOException;
|
|
use Illuminate\Validation\Rule;
|
|
use Illuminate\Support\Facades\Validator;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
Storage::macro('public', function ($diskName) {
|
|
$public = config("filesystems.disks.{$diskName}.public", false);
|
|
return $public;
|
|
});
|
|
}
|
|
}
|