Commit caaafd92 authored by Silvio Gratani's avatar Silvio Gratani

reverted previous commit

parent ab55f37c
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
namespace Modules\$MODULE$\Providers; namespace Modules\$MODULE$\Providers;
use Illuminate\Database\Eloquent\Factory as EloquentFactory;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
use Modules\Core\Traits\CanPublishConfiguration; use Modules\Core\Traits\CanPublishConfiguration;
use Modules\Core\Events\BuildingSidebar; use Modules\Core\Events\BuildingSidebar;
...@@ -32,8 +31,6 @@ class $MODULE$ServiceProvider extends ServiceProvider ...@@ -32,8 +31,6 @@ class $MODULE$ServiceProvider extends ServiceProvider
$this->app['events']->listen(LoadingBackendTranslations::class, function (LoadingBackendTranslations $event) { $this->app['events']->listen(LoadingBackendTranslations::class, function (LoadingBackendTranslations $event) {
// append translations // append translations
}); });
$this->registerEloquentFactoriesFrom(__DIR__ . '/../Database/factories');
} }
public function boot() public function boot()
...@@ -57,15 +54,4 @@ class $MODULE$ServiceProvider extends ServiceProvider ...@@ -57,15 +54,4 @@ class $MODULE$ServiceProvider extends ServiceProvider
{ {
// add bindings // add bindings
} }
/**
* Register factories.
*
* @param string $path
* @return void
*/
protected function registerEloquentFactoriesFrom($path)
{
$this->app->make(EloquentFactory::class)->load($path);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment