Skip to content

Commit

Permalink
Resolve result class from service container
Browse files Browse the repository at this point in the history
  • Loading branch information
drewroberts authored Mar 27, 2021
1 parent 23ee272 commit 89ef5f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function up()
$table->foreignIdFor(app('ranking'))->index();
$table->string('type')->index(); // Example: 'Organic', 'Local', 'Ads', 'Inline Video'
$table->unsignedTinyInteger('position')->index();
$table->foreignIdFor(app(result), 'parent_id')->nullable(); // Parent Result
$table->foreignIdFor(app('result'), 'parent_id')->nullable(); // Parent Result

// resultable_id, resultable_type either Tipoff\Seo\Models\Webpage or Place
$table->morphs('resultable');
Expand Down

0 comments on commit 89ef5f6

Please sign in to comment.