v0.0.2 You can now make post and store it in the database.

This commit is contained in:
Victor
2021-06-02 09:01:51 +02:00
parent dfb9103157
commit d276aed27b
11 changed files with 78 additions and 10 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
require "../../bootstrap.php";
use Illuminate\Database\Capsule\Manager as Capsule;
Capsule::schema()->create('posts', function ($table) {//Note til mig selv, husk at din database table skal ende med "s" hvis du faa en lang fejl besked
$table->increments('id');
$table->string('title');
$table->longtext('description');
$table->timestamps();
});