You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.
Consider this new User object (translatable-trait is not used in the model)
$user = new User();
$user->save();
echo $user->id //returns 1 (if your user table was empty), db-record created
It's a bit silly to store a user without properties, but the point i want to make is that normally a record without any properties get saved in the db with only the id.
Now consider this new News object (translatable-trait is used on this model)
$news = new News();
$news->save();
echo $news->id //returns NULL, record is not saved in the db
The record should be saved even when no properties are set.
The text was updated successfully, but these errors were encountered:
Consider this new User object (translatable-trait is not used in the model)
It's a bit silly to store a user without properties, but the point i want to make is that normally a record without any properties get saved in the db with only the id.
Now consider this new News object (translatable-trait is used on this model)
The record should be saved even when no properties are set.
The text was updated successfully, but these errors were encountered: