Skip to content

Commit

Permalink
Merge pull request #34 from derhofbauer/feature/publish-migrations
Browse files Browse the repository at this point in the history
Implement ServiceProvider for migration discovery
  • Loading branch information
mpociot committed Sep 6, 2018
2 parents 52685bb + 3a98f69 commit d8c3783
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
16 changes: 15 additions & 1 deletion composer.json
Expand Up @@ -2,7 +2,14 @@
"name": "mpociot/versionable",
"license": "MIT",
"description": "Allows to create Laravel 4 / 5 Model versioning and restoring",
"keywords": ["model", "laravel", "ardent", "version", "history", "restore"],
"keywords": [
"model",
"laravel",
"ardent",
"version",
"history",
"restore"
],
"homepage": "http://github.com/mpociot/versionable",
"authors": [
{
Expand Down Expand Up @@ -35,5 +42,12 @@
},
"scripts": {
"test": "phpunit"
},
"extra": {
"laravel": {
"providers": [
"Mpociot\\Versionable\\Providers\\ServiceProvider"
]
}
}
}
27 changes: 27 additions & 0 deletions src/Mpociot/Providers/ServiceProvider.php
@@ -0,0 +1,27 @@
<?php

namespace Mpociot\Versionable\Providers;

use Illuminate\Support\ServiceProvider as LaravelServiceProvider;

class ServiceProvider extends LaravelServiceProvider
{
/**
* Register bindings in the container.
*
* @return void
*/
public function register ()
{
}

/**
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
{
$this->loadMigrationsFrom(__DIR__ . '/../../migrations');
}
}

0 comments on commit d8c3783

Please sign in to comment.