389 API Changes (#393)
* Update PHPUnit to 8 * Fix API endpoints closes #389 * Update pagination method in Repository contract to look at the page number closes #390 * Remove unused imports * Fix tests in FlightTests * Typecast page * Don't register factories * Remove Factory loading * Remove unused imports
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
namespace Modules\Sample\Providers;
|
||||
|
||||
use App\Services\ModuleService;
|
||||
use Illuminate\Database\Eloquent\Factory;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Route;
|
||||
|
||||
@@ -25,7 +24,6 @@ class SampleServiceProvider extends ServiceProvider
|
||||
|
||||
$this->registerLinks();
|
||||
|
||||
$this->registerFactories();
|
||||
$this->loadMigrationsFrom(__DIR__.'/../Database/migrations');
|
||||
}
|
||||
|
||||
@@ -145,18 +143,6 @@ class SampleServiceProvider extends ServiceProvider
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Register an additional directory of factories.
|
||||
*
|
||||
* @source https://github.com/sebastiaanluca/laravel-resource-flow/blob/develop/src/Modules/ModuleServiceProvider.php#L66
|
||||
*/
|
||||
public function registerFactories()
|
||||
{
|
||||
if (!app()->environment('production')) {
|
||||
app(Factory::class)->load(__DIR__.'/../Database/factories');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the services provided by the provider.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user