yamis_laravel5_4_blog / yamis_laravel5_4_blog
The Laravel 5.4 Blog Challenge.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 8
Type:project
Requires
- php: >=5.6.4
- laravel/framework: 5.4.*
- laravel/tinker: ~1.0
Requires (Dev)
- fzaninotto/faker: ~1.4
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~5.7
- dev-master
- dev-dependabot/composer/erusev/parsedown-1.7.4
- dev-dependabot/npm_and_yarn/node-sass-4.14.1
- dev-dependabot/npm_and_yarn/marked-0.3.19
- dev-dependabot/npm_and_yarn/axios-0.21.1
- dev-dependabot/npm_and_yarn/tar-2.2.2
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/is-my-json-valid-2.20.5
- dev-dependabot/npm_and_yarn/lodash-4.17.21
This package is auto-updated.
Last update: 2024-05-26 05:35:49 UTC
README
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 stack
to run your application locally. - Install
composer
by 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-scripts
to force composer to skip the execution of scripts defined in the composer.json file. - Run
php artisan key:generate
to generate an authentication key for the application. - Run
php artisan make:auth
to create the login fascility - Create the
Post
model by running this code which creates thecontroller
, the databasemigrations
and theresource
section:php artisan make:model Post --controller --migration --resource
- Go to the migration file and update the schema accordingly.
- Edit the
.env
file 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 migrate
to carry out the migration and build the tables. - Run
php artisan serve
to serve up the application. - Enjoy!
Blog Features
Non-Admin / Guest users:
- Can only view the Blog home page and see only
active
blogs. - 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!