DEV Community

AJ
AJ

Posted on • Originally published at dev.to

What is Type Casting in laravel

You can specify the data types for certain model attributes in Laravel by using type casting. It makes sure that Laravel automatically casts the attribute values to the designated types when you retrieve data from the database.

Top comments (0)