Creato controller e route per il menu auto

This commit is contained in:
2023-03-15 16:08:03 +01:00
parent 9bfb9a1903
commit 6b71f88ccf
9 changed files with 988 additions and 1197 deletions

View 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');
}
}