Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class CreateRecentViewsTables extends Migration |
||
8 | { |
||
9 | public function up() |
||
10 | { |
||
11 | Schema::create(config('recently-viewed.persist_table'), function (Blueprint $table) { |
||
12 | $table->bigIncrements('id'); |
||
13 | $table->morphs('viewer'); |
||
14 | // $table->uuidMorphs('viewer'); |
||
15 | $table->string('type'); |
||
16 | $table->text('views'); |
||
17 | $table->timestamps(); |
||
18 | }); |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Reverse the migrations. |
||
23 | */ |
||
24 | public function down() |
||
27 | } |
||
28 | } |
||
29 |