tweak configure

This commit is contained in:
awcodes
2023-07-11 13:45:41 -04:00
parent 31dcc0cf53
commit 07db1e858a
5 changed files with 26 additions and 33 deletions

View File

@@ -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;
}

View File

@@ -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();