Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | 9 | public static function defaultColumns(Blueprint $table) |
|
10 | { |
||
11 | 9 | $table->id(); |
|
12 | 9 | $table->morphs('seoptimisable'); |
|
13 | 9 | $table->string('robots')->nullable(); |
|
14 | 9 | $table->string('title')->nullable(); |
|
15 | 9 | $table->string('description')->nullable(); |
|
16 | 9 | $table->string('canonical')->nullable(); |
|
17 | 9 | $table->string('image')->nullable(); |
|
18 | |||
19 | // Future implementation |
||
20 | // $table->json('meta')->nullable(); |
||
21 | // $table->json('open_graph')->nullable(); |
||
22 | // $table->json('twitter_card')->nullable(); |
||
23 | // $table->json('json_ld')->nullable(); |
||
24 | // $table->json('json_ld_multi')->nullable(); |
||
25 | |||
26 | 9 | $table->timestamps(); |
|
27 | } |
||
29 |