Let’s Begin:
- Start a fresh 5.x Laravel project
- Utilise Twitter Bootstrap (CSS & JS)
- Create the following functionality for a client:
An Administrator may view all existing blog posts or see a message that no blogs are available. A logged out user should be able to see all Active blog posts available.
The list of Active blogs should show it’s Title, Excerpt Body, Published Time & Author’s Name. Upon clicking the blogs Title, it should present the full blog article showing Title, Full Body, Published Time, Author’s Name.
An Administrator can create a new blog article with fields including Title, Body and Active Status. An Administrator can edit an existing blog and be able to update it’s Title, Body and Active Status.
User (default Laravel user migration) | Posts |
---|---|
id | id |
name | user_id - foreign key |
active - boolean | |
password | title |
remember_token | body |
created_at | published_at - datetime |
updated_at | created_at |
_ | updated_at |
- Create Migrations & fill in Schema
- Create Models with correct relationships & fillable fields
- Create Controller with required methods
- Create FormRequests for controller validation methods
- Create required views for Index, Create, Edit, Show
- Delete a blog post