Eloquent ORM
Watch Eloquent queries become SQL
Eloquent maps PHP objects to database rows. Click a query to see the generated SQL and matching rows.
Eloquent
Post::all()
SQL
SELECT * FROM posts
posts table5 matched
| id | title | author | status |
|---|---|---|---|
| 1 | Getting Started with Laravel | Alice | published |
| 2 | Understanding Eloquent | Bob | draft |
| 3 | Blade Templates Guide | Alice | published |
| 4 | API Development | Charlie | published |
| 5 | Testing in Laravel | Bob | draft |