PHP code example of cybercog / laravel-service-provider
1. Go to this page and download the library: Download cybercog/laravel-service-provider library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cybercog / laravel-service-provider example snippets
namespace Vendor\Package;
use Cog\ServiceProvider\BaseServiceProvider;
class ServiceProvider extends BaseServiceProvider
{
public function boot()
{
$this->setup(__DIR__)
->publishMigrations()
->publishConfig()
->publishViews()
->publishAssets()
->loadViews()
->loadTranslations()
->mergeConfig('package');
}
}