v0.0.2 You can now make post and store it in the database.
This commit is contained in:
@@ -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();
|
||||
});
|
||||
Reference in New Issue
Block a user