示例#1
0
 public function index($username)
 {
     $user = User::where('first_name', $username)->first();
     var_dump(\DB::getQueryLog());
     var_dump($user);
     return $user->first_name;
 }
示例#2
0
 public function index()
 {
     return User::all();
 }