mirror of
https://github.com/filamentphp/plugin-skeleton.git
synced 2025-12-07 05:58:51 +08:00
tweak configure
This commit is contained in:
@@ -9,7 +9,7 @@ use Illuminate\Support\Facades\Facade;
|
||||
*/
|
||||
class Skeleton extends Facade
|
||||
{
|
||||
protected static function getFacadeAccessor(): string
|
||||
protected static function getFacadeAccessor()
|
||||
{
|
||||
return \VendorName\Skeleton\Skeleton::class;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,11 @@ class SkeletonServiceProvider extends PackageServiceProvider
|
||||
|
||||
public function configurePackage(Package $package): void
|
||||
{
|
||||
/*
|
||||
* This class is a Package Service Provider
|
||||
*
|
||||
* More info: https://github.com/spatie/laravel-package-tools
|
||||
*/
|
||||
$package->name(static::$name)
|
||||
->hasCommands($this->getCommands())
|
||||
->hasInstallCommand(function (InstallCommand $command) {
|
||||
@@ -54,16 +59,6 @@ class SkeletonServiceProvider extends PackageServiceProvider
|
||||
}
|
||||
}
|
||||
|
||||
public function register(): void
|
||||
{
|
||||
parent::register();
|
||||
|
||||
// Facade Registration
|
||||
app()->bind('skeleton', function (): Skeleton {
|
||||
return new Skeleton();
|
||||
});
|
||||
}
|
||||
|
||||
public function boot(): void
|
||||
{
|
||||
parent::boot();
|
||||
|
||||
Reference in New Issue
Block a user