Skip to content

Commit

Permalink
QOL inprovements
Browse files Browse the repository at this point in the history
  • Loading branch information
csrui committed Jul 4, 2022
1 parent 0eb85e2 commit 59f1628
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 6 additions & 0 deletions resources/views/components/panel.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div
x-cloak
{{ $attributes->merge(['class' => 'w-full h-full']) }}
>
{{ $slot }}
</div>
16 changes: 13 additions & 3 deletions src/DynamicPanelsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,19 @@
use Spatie\LaravelPackageTools\Package;
use TwentySixB\LaravelDynamicPanels\Http\Livewire\PanelContainer;

/**
* Package Service Provider
*
*/
class DynamicPanelsServiceProvider extends PackageServiceProvider
{

/**
* @inheritDoc
*
* @param Package $package
* @return void
*/
public function configurePackage(Package $package) : void
{
$package->name('laravel-dynamic-panels')
Expand All @@ -16,13 +27,12 @@ public function configurePackage(Package $package) : void
}

/**
* Bootstrap any application services.
* @inheritDoc
*
* @return void
*/
public function boot()
public function packageBooted() : void
{
parent::boot();
\Livewire::component('dynamic-panels', PanelContainer::class);
}
}

0 comments on commit 59f1628

Please sign in to comment.