diff --git a/composer.json b/composer.json index a5c271d..6f794b4 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "regnerisch/laravel-beyond", "type": "library", "license": "ISC", - "version": "3.1.0", + "version": "3.1.1", "autoload": { "psr-4": { "Regnerisch\\LaravelBeyond\\": "src/" diff --git a/src/Commands/SetupCommand.php b/src/Commands/SetupCommand.php index 9fdf93a..79b226b 100644 --- a/src/Commands/SetupCommand.php +++ b/src/Commands/SetupCommand.php @@ -103,7 +103,7 @@ public function handle(): void $this->components->info('Setup completed.'); $this->components->info( 'Do not forget to add following code into the boot() function of your AppServiceProvider:' . PHP_EOL . PHP_EOL . - + 'Illuminate\Database\Eloquent\Factories\Factory::guessFactoryNamesUsing(function (string $modelName) {' . PHP_EOL . "\t" . 'return \'Database\\\Factories\\\' . class_basename($modelName) . \'Factory\';' . PHP_EOL . '});' . PHP_EOL