[Vuejs]-How to retrieve database columns when using eloquent with vuejs

0👍

You have to load the words relationship (assuming that’s the name):

$dayOne = Content::where(['course_id'=>'1','day_id'=>'1'])->with('words')->first();

Then you can access the words in your frontend:

this.content.words

Leave a comment