I am curious about how eloquent knows in which table it should save the records we give it by running $ php artisan tinker . I do not actually remember setting
Model name is mapped to the plural of table name, like User model maps to users table and so.
When you do
User::all() laravel knows that you want the records from users table.
To specify the table name explicitly you use protected $table ='name' field on model.