exposé tinker laravel

PHP
// 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;
Source

Also in PHP: