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();
|
||||
});
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
|
||||
require "user_migration.php";
|
||||
echo "Done";
|
||||
//require "user_migration.php";
|
||||
//require "post_migration.php";
|
||||
echo "Nothing required/Enabled ";
|
||||
|
||||
Reference in New Issue
Block a user