Skip to content
Sumit Patil edited this page Jun 18, 2015 · 1 revision

To fetch all records

$users = User::all();
foreach($users as $user){
        echo $user->id;
        echo $user->name;
        echo $user->email;
    }

To fetch a single record

$user = User::find(1);
Clone this wiki locally