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.
The Eloquent ORM included with Laravel provides a beautiful, simple ActiveRecord implementation for working with your database.