mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Merge branch 'develop' of github.com:laravel-filament/filament into register-with-livewire
This commit is contained in:
@@ -26,6 +26,8 @@ abstract class PluginServiceProvider extends ServiceProvider
|
||||
|
||||
public function register()
|
||||
{
|
||||
$this->registeringPlugin();
|
||||
|
||||
$this->app->booting(function () {
|
||||
foreach ($this->pages() as $page) {
|
||||
Filament::registerPage($page);
|
||||
@@ -57,6 +59,8 @@ abstract class PluginServiceProvider extends ServiceProvider
|
||||
Filament::provideToScript($this->scriptData());
|
||||
});
|
||||
});
|
||||
|
||||
$this->pluginRegistered();
|
||||
}
|
||||
|
||||
protected function pages()
|
||||
@@ -64,6 +68,16 @@ abstract class PluginServiceProvider extends ServiceProvider
|
||||
return $this->pages;
|
||||
}
|
||||
|
||||
protected function pluginRegistered()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
protected function registeringPlugin()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
protected function resources()
|
||||
{
|
||||
return $this->resources;
|
||||
|
||||
Reference in New Issue
Block a user