In this episode, we take the default Laravel Breeze dashboard and turn it into something more lively by actually displaying all the boards a user has created. We start by setting up a new Livewire component specifically for listing boards and adjust the web routes so our dashboard points to this new page. Most of the existing dashboard view gets migrated over, and we clean up a bit by removing views we no longer need.
Next, we create a relationship in the user model so each user can have many boards. This lets us easily fetch and loop through the boards for the currently authenticated user. After updating the Blade template to iterate through the boards, we style the listing with a simple grid layout so multiple boards show up nicely side by side.
To make things look a little better, we tweak the styles so each board card has some visual separation. We even mock up two boards for demo purposes. As a placeholder for the next feature, we add a special card/button for creating a new board, complete with its own unique style and an "add" icon.
By the end of the episode, we've got a dashboard that lists all the user's boards in a nice grid and includes a button to create new boards (the actual creation is coming up next). It's the foundation for making your app feel a lot more interactive!