Service Provider

For a more indepth look into Service Providers, please check the Laravel Documentation.

Service Provider

The service provider is the connecting piece between the application and your extension. It handles the loading and booting of the extension with things like loading routes, views, merging configs. For fuller documentation on Service Providers you can read it on Laravel.com.

<?php
namespace Extensions\Titan\HelloWorld;
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
public function boot()
{
$this->loadRoutesFrom(__DIR__ . '/routes.php');
$this->loadViewsFrom(__DIR__ . '/resources/views', 'hello-world');
}
public function register()
{
}
}