13 March, 2019
Фабрики в плагине
To enable ability to write factories in your plugin add this to the Plugin class:
use Illuminate\Database\Eloquent\Factory as EloquentFactory;
public function register()
{
app(EloquentFactory::class)->load(plugins_path('author/plugin/factories'));
}
Views: 226