Laravel eloquent find or new

broken image

For more information on configuring your database, check out the documentation. Models allow you to query for data in your tables, as well as insert new records into the table.īefore getting started, be sure to configure a database connection in config/database.php. Each database table has a corresponding 'Model' which is used to interact with that table.

broken image
broken image

The Eloquent ORM included with Laravel provides a beautiful, simple ActiveRecord implementation for working with your database.

broken image