diff --git a/composer.json b/composer.json index 4792ae3..13058d1 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "extra": { "laravel": { "providers": [ - "Wuwx\\LaravelAdminAlpinejs\\LaravelAdminAlpinejsServiceProvider" + "Wuwx\\LaravelAdminAlpinejs\\AlpinejsServiceProvider" ] } } diff --git a/src/LaravelAdminAlpinejs.php b/src/Alpinejs.php similarity index 59% rename from src/LaravelAdminAlpinejs.php rename to src/Alpinejs.php index 3b1357a..56aceac 100644 --- a/src/LaravelAdminAlpinejs.php +++ b/src/Alpinejs.php @@ -4,9 +4,9 @@ use Encore\Admin\Extension; -class LaravelAdminAlpinejs extends Extension +class Alpinejs extends Extension { - public $name = 'laravel-admin-alpinejs'; + public $name = 'alpinejs'; public $assets = __DIR__.'/../resources/assets'; } diff --git a/src/LaravelAdminAlpinejsServiceProvider.php b/src/AlpinejsServiceProvider.php similarity index 77% rename from src/LaravelAdminAlpinejsServiceProvider.php rename to src/AlpinejsServiceProvider.php index bb80835..8a6f749 100644 --- a/src/LaravelAdminAlpinejsServiceProvider.php +++ b/src/AlpinejsServiceProvider.php @@ -5,14 +5,14 @@ use Encore\Admin\Facades\Admin; use Illuminate\Support\ServiceProvider; -class LaravelAdminAlpinejsServiceProvider extends ServiceProvider +class AlpinejsServiceProvider extends ServiceProvider { /** * {@inheritdoc} */ - public function boot(LaravelAdminAlpinejs $extension) + public function boot(Alpinejs $extension) { - if (! LaravelAdminAlpinejs::boot()) { + if (! Alpinejs::boot()) { return ; }