Renamed attribute to tags & continued interface

Also fixed page create route broken in last commit
This commit is contained in:
Dan Brown
2016-05-13 21:20:21 +01:00
parent 1fa079b466
commit b80184cd93
18 changed files with 369 additions and 282 deletions

View File

@ -54,7 +54,7 @@ $factory->define(BookStack\Role::class, function ($faker) {
];
});
$factory->define(BookStack\Attribute::class, function ($faker) {
$factory->define(BookStack\Tag::class, function ($faker) {
return [
'name' => $faker->city,
'value' => $faker->sentence(3)

View File

@ -3,7 +3,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAttributesTable extends Migration
class CreateTagsTable extends Migration
{
/**
* Run the migrations.
@ -12,7 +12,7 @@ class CreateAttributesTable extends Migration
*/
public function up()
{
Schema::create('attributes', function (Blueprint $table) {
Schema::create('tags', function (Blueprint $table) {
$table->increments('id');
$table->integer('entity_id');
$table->string('entity_type', 100);
@ -35,6 +35,6 @@ class CreateAttributesTable extends Migration
*/
public function down()
{
Schema::drop('attributes');
Schema::drop('tags');
}
}