ViewServiceProvider::registerBladeEngine()

void registerBladeEngine(EngineResolver $resolver) Register the Blade engine implementation. Parameters EngineResolver $resolver Return Value void

ViewServiceProvider::register()

void register() Register the service provider. Return Value void

ViewServiceProvider::provides()

array provides() Get the services provided by the provider. Return Value array

ViewServiceProvider::pathsToPublish()

static array pathsToPublish(string $provider = null, string $group = null) Get the paths to publish. Parameters string $provider string $group Return Value array

ViewServiceProvider::isDeferred()

bool isDeferred() Determine if the provider is deferred. Return Value bool

ViewServiceProvider::compiles()

static array compiles() Get a list of files that should be compiled for the package. Return Value array

ViewServiceProvider::commands()

void commands(array|mixed $commands) Register the package's custom Artisan commands. Parameters array|mixed $commands Return Value void

ViewServiceProvider

ViewServiceProvider class ViewServiceProvider extends ServiceProvider (View source) Methods void __construct(Application $app) Create a new service provider instance. from ServiceProvider void register() Register the service provider. static array pathsToPublish(string $provider = null, string $group = null) Get the paths to publish. from ServiceProvider void commands(array|mixed $commands) Register the package's custom Artisan commands. from ServiceProvider array provide

Views

Views Creating Views Passing Data To Views Sharing Data With All Views View Composers Creating Views Views contain the HTML served by your application and separate your controller / application logic from your presentation logic. Views are stored in the resources/views directory. A simple view might look something like this: <!-- View stored in resources/views/greeting.blade.php --> <html> <body> <h1>Hello, {{ $name }}</h1> </body> </h

ViewPublisher::__construct()

void __construct(Filesystem $files, string $publishPath) Create a new view publisher instance. Parameters Filesystem $files string $publishPath Return Value void