Creato controller e route per il menu auto
This commit is contained in:
@@ -17,7 +17,7 @@ class CreateUsersTable extends Migration
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('guid')->unique()->nullable();
|
||||
$table->string('domain');
|
||||
$table->string('domain')->nullable()->default('default');
|
||||
$table->string('email')->unique();
|
||||
$table->timestamp('email_verified_at')->nullable();
|
||||
$table->string('password');
|
||||
|
||||
41
database/migrations/2023_03_15_143036_create_autos_table.php
Normal file
41
database/migrations/2023_03_15_143036_create_autos_table.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateAutosTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('autos', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
$table->string('targa',10);
|
||||
$table->string('marca',10);
|
||||
$table->string('modello',10);
|
||||
$table->string('cilindrata',10);
|
||||
$table->string('alimentazione',10);
|
||||
$table->string('cvfiscali',10);
|
||||
$table->string('ntelaio',10);
|
||||
$table->string('nmotore',10);
|
||||
$table->date('data_acquisto');
|
||||
$table->text('note');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('autos');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user