Answer the question
In order to leave comments, you need to log in
How to change table in Laravel?
Sorry noob.
There is a Goods model class in which a selection is made from the database:
$best_sellers = Goods::select('name','price','img')
->orderBy('popular', 'desc')
->take('8')
->get();
$main_news = Goods::table('news')
->select('date','title','body','img')
->orderBy('date', 'desc')
->take('4')
->get();
Call to undefined method Illuminate\Database\Query\Builder::table()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question