diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index ab3ac4a..d010a02 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -2,6 +2,7 @@ namespace App\Providers; +use Illuminate\Foundation\AliasLoader; use Illuminate\Http\Request; use Illuminate\Notifications\ChannelManager; use Illuminate\Support\Facades\Auth; @@ -13,6 +14,7 @@ use Illuminate\Support\ServiceProvider; use App\Events\Echomail as EchomailEvent; use App\Events\Matrix\Message; +use App\Helpers\PageAssets; use App\Listeners\EchomailListener; use App\Listeners\Matrix\MessageListener; use App\Notifications\Channels\{EchomailChannel,MatrixChannel,NetmailChannel}; @@ -79,5 +81,9 @@ class AppServiceProvider extends ServiceProvider EchomailEvent::class, EchomailListener::class, ); + + // Custom Aliases + $loader = AliasLoader::getInstance(); + $loader->alias('PageAssets',PageAssets::class); } } diff --git a/app/Providers/CustomBladeServiceProvider.php b/app/Providers/CustomBladeServiceProvider.php index 00e7dbe..15973a8 100644 --- a/app/Providers/CustomBladeServiceProvider.php +++ b/app/Providers/CustomBladeServiceProvider.php @@ -5,6 +5,7 @@ namespace App\Providers; use Illuminate\Support\Facades\Blade; use Illuminate\Support\ServiceProvider; +// @deprecated - now using pa() class CustomBladeServiceProvider extends ServiceProvider { /** diff --git a/resources/views/components/form/base.blade.php b/resources/views/components/form/base.blade.php new file mode 100644 index 0000000..b2cf197 --- /dev/null +++ b/resources/views/components/form/base.blade.php @@ -0,0 +1,27 @@ +