I have a question regarding casts in model. If you define the phone as integer in casts and the user input a string will there be an error message?
protected $casts = [
'phone' => 'integer'
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!