for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Vetor\Laravel\Collect\Providers;
use Illuminate\Support\ServiceProvider;
use Vetor\Laravel\Collect\Collection\Models\Collection;
use Vetor\Laravel\Collect\Collectable\Services\CollectableService;
use Vetor\Contracts\Collect\Collection\Models\Collection as CollectionContract;
use Vetor\Contracts\Collect\Collectable\Services\CollectableService as CollectableServiceContract;
class CollectServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public function boot()
$this->registerPublishes();
$this->registerMigrations();
}
* Register the service provider.
public function register()
$this->registerContracts();
public function registerContracts()
$this->app->bind(CollectionContract::class, Collection::class);
$this->app->bind(CollectableServiceContract::class, CollectableService::class);
* Setup the resource publishing groups for Love.
protected function registerPublishes()
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__ . '/../../database/migrations' => database_path('migrations'),
], 'migrations');
* Register the Love migrations.
protected function registerMigrations()
$this->loadMigrationsFrom(__DIR__ . '/../../database/migrations');