mardi 6 novembre 2018

none Database Model two attributes in Laravel

i'm a newbie in Laravel Please Guide me.

1- Port is a Model and Coordinates is a none database Model. 2- 2 floats are lat and long in Port Model.

When a port is loaded from the database, the 2 floats are casted to a Coordinates-object. Second Question How to make a non-database model with two attributes.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire