DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
laravel | eloquent | db | randomly fetch | query data
1 2 3 4 5 public function index() { $data = Post::inRandomOrder()->limit(10)->get(); dd($data); }
Source by codeplaners.com #
PREVIOUS
NEXT
Tagged:
#laravel
#eloquent
#db
#randomly
#fetch
#query
#data
ADD COMMENT
Topic
COMMENT
Name
5+6 =
Submit