corretto lunghezza stringa colonne ntelaio e nmotore

This commit is contained in:
2023-04-02 18:43:00 +02:00
parent 39f1fb8eb2
commit bb783b9bf1
10 changed files with 263 additions and 49 deletions

View File

@@ -22,10 +22,10 @@ class CreateAutosTable extends Migration
$table->string('cilindrata',10);
$table->string('alimentazione',10);
$table->string('cvfiscali',10);
$table->string('ntelaio',10);
$table->string('nmotore',10);
$table->string('ntelaio',30);
$table->string('nmotore',30)->nullable();
$table->date('data_acquisto');
$table->text('note');
$table->text('note')->nullable();
});
}

View File

@@ -14,5 +14,10 @@ class DatabaseSeeder extends Seeder
public function run()
{
// \App\Models\User::factory(10)->create();
$this->call([
UserSeeder::class,
TagSeeder::class,
CategorieSeeder::class,
]);
}
}

View File

@@ -4,6 +4,7 @@ namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
class UserSeeder extends Seeder