Adding a blog area to update users on new features
Laravel is not a CMS, but still, it is really nice to create a simple, markdown-based blog to quickly post updates about latest features and news for the comic site. In this section, I will show how we can use Slugs from the earlier recipe called Adding clean URLs for the users profile page in this chapter, and a markdown library, so we can make a blog area that is paginated and ready to show off our latest info written in markdown and converted into HTML.
Getting ready
A fresh install of Laravel is fine. I will continue on with the comic book site I have been making all along.
How to do it…
Use a scaffolding library that I talked about in Chapter 5, Working with Data:
>php artisan make:scaffold Blog --schema="title:string, mark_down:text, html:text, active:boolean:default(0), url:string"
Make sure your migration ends up looking like this:
Then, I add the controller to my
app/Http/routes.php
file:Then, I fix up the views the way I need them...