If you review the welcome
view that ships with Laravel, it contains the full HTML structure all the way up to the doctype. This is fine for a demo page, but in real life, you'll instead reach for layout files.
app/Models
directory. This means an App\Post
namespace should now be App\Models\Post
.