-
app/Providers/BladeComponentServiceProvider.php
Open in GitHubuse App\Http\Components\AdComponent; use Illuminate\Support\Facades\Blade; use Illuminate\Support\ServiceProvider; class BladeComponentServiceProvider extends ServiceProvider { public function boot() { Blade::component('ad', AdComponent::class); Blade::component('front.components.inputField', 'input-field'); Blade::component('front.components.submitButton', 'submit-button'); Blade::component('front.components.textarea', 'textarea'); Blade::component('front.components.textarea', 'textarea'); Blade::component('front.components.shareButton', 'share-button'); Blade::component('front.components.lazy', 'lazy'); Blade::component('front.components.postHeader', 'post-header'); Blade::component('front.layouts.app', 'app-layout'); } }
-
config/app.php
Open in GitHubreturn [ // 'providers' => [ // \App\Providers\BladeComponentServiceProvider::class, // ], // ];