yamis_laravel5_4_blog maintained by yamis_laravel5_4_blog
Blog-Challenge-with-Laravel-5.4
This blog was created using Laravel 5.4
Disclaimer
This blog was created with the sole intent for public sharing. No part of this code-base is harmful to anyone, nor designed with malicious intent. You are therefore free to copy, contribute to and / or share as you please at your own risk. The original author of this blog will not be resposible for any software, system, personal damages or loss of business damages that may occur from choosing to copy this code. As long as you are having fun with Laravel, enjoy!!
Installation
- Install
LAMP stackto run your application locally. - Install
composerby following the instructions here: Download & Install Composer - Use composer to install Laravel 5.4 as per the documentation here: Laravel 5.4 Installation
- Run
composer update --no-scriptsto force composer to skip the execution of scripts defined in the composer.json file. - Run
php artisan key:generateto generate an authentication key for the application. - Run
php artisan make:authto create the login fascility - Create the
Postmodel by running this code which creates thecontroller, the databasemigrationsand theresourcesection:php artisan make:model Post --controller --migration --resource - Go to the migration file and update the schema accordingly.
- Edit the
.envfile in the document root to correctly reflect your database connection details:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=#yourDatabaseName#
DB_USERNAME=#username#
DB_PASSWORD=#password#
- Run
php artisan migrateto carry out the migration and build the tables. - Run
php artisan serveto serve up the application. - Enjoy!
Blog Features
Non-Admin / Guest users:
- Can only view the Blog home page and see only
activeblogs. - Cannot manage an existing blog
- Can register, login and start blogging.
- Can view the entire blog by clicking the blog title.
Admin / Logged-in Users:
- Can do all the above.
- Can view All blogs regardless of the blogs Active Status.
- Can manage blogs. They have the rights to:
- Create a blog
- Edit blog
- Delete a blog
- Set a blog's Active Status
Pending / Additional Improvements
Due to time constraints, and the need to build a simple blog using Laravel 5.4, the following features were not done.
- Database seeding
- Automation Testing
- Dynamic Links. The current implemented logic needs more work. Although it works for the purposes of this project.
- Social media likes / commenting / counts plugins etc.
Enjoy!