-
-
Notifications
You must be signed in to change notification settings - Fork 152
Expand file tree
/
Copy pathLivewireModalServiceProvider.php
More file actions
32 lines (27 loc) · 973 Bytes
/
LivewireModalServiceProvider.php
File metadata and controls
32 lines (27 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
namespace LivewireUI\Modal;
use Livewire\Features\SupportConsoleCommands\Commands\UpgradeCommand;
use Livewire\Livewire;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
class LivewireModalServiceProvider extends PackageServiceProvider
{
public function configurePackage(Package $package): void
{
$package
->name('wire-elements-modal')
->hasConfigFile()
->hasViews();
}
public function registeringPackage()
{
if (class_exists(\Livewire\Features\SupportConsoleCommands\Commands\UpgradeCommand::class)) {
\Livewire\Features\SupportConsoleCommands\Commands\UpgradeCommand::addThirdPartyUpgradeStep(WireElementsModalUpgrade::class);
}
}
public function bootingPackage(): void
{
Livewire::component('livewire-ui-modal', Modal::class);
Livewire::component('wire-elements-modal', Modal::class);
}
}