Answers for "exposé tinker laravel"

PHP
0

exposé tinker laravel

// see the count of all users
App\User::count();

// find a specific user and see their attributes
App\User::where('username', 'kamelia')->first();

// find the relationships of a user
$user = App\User::with('posts')->first();
$user->posts;
Posted by: Guest on October-26-2020

Browse Popular Code Answers by Language