diff --git a/database/migrations/2022_03_14_151214_create_documentis_table.php b/database/migrations/2022_03_14_151214_create_documentis_table.php index a738800..bb5579e 100644 --- a/database/migrations/2022_03_14_151214_create_documentis_table.php +++ b/database/migrations/2022_03_14_151214_create_documentis_table.php @@ -16,22 +16,12 @@ class CreateDocumentisTable extends Migration Schema::create('documentis', function (Blueprint $table) { $table->id(); $table->timestamps(); - $table->foreignId('movimenti_id'); $table->string('descrizione'); - $table->string('filename'); + // $table->foreignId('movimenti_id'); + // Aggiunto per definire il nome della cartella + $table->string('path'); + // $table->string('filename'); }); - - /* - {issue #5} GITEA - proposta modifica - Schema::create('documentis', function (Blueprint $table) { - $table->id(); - $table->timestamps(); - $table->string('entita'); - $table->bigInteger('entita_id'); - $table->string('descrizione'); - $table->string('filename'); - }); - */ } /** diff --git a/database/seeders/Documenti.php b/database/seeders/Documenti.php new file mode 100644 index 0000000..52e97f9 --- /dev/null +++ b/database/seeders/Documenti.php @@ -0,0 +1,44 @@ +0, + 'descrizione' => 'Movimenti', + 'path' => 'Movimenti', + ], + [ + 'id' => 1, + 'descrizione' => 'Contratti', + 'path' => 'Contratti', + ], + [ + 'id' => 2, + 'descrizione' => 'Automobili', + 'path' => 'Automobili', + ], + [ + 'id' => 3, + 'descrizione' => 'Progetti', + 'path' => 'Progetti', + ], + [ + 'id' => 4, + 'descrizione' => 'Documenti', + 'path' => 'Documenti', + ]); + } +} diff --git a/resources/views/documenti/lista.blade.php b/resources/views/documenti/lista.blade.php index 09f620d..84019b3 100644 --- a/resources/views/documenti/lista.blade.php +++ b/resources/views/documenti/lista.blade.php @@ -6,18 +6,16 @@ @section('content')
- + Nuova Cartella
- +
Lista cartelle
-
- +
@@ -39,7 +37,8 @@ + @endsection @section('script') - + @endsection \ No newline at end of file