Skip to content

pensart/Simple-laravel-blog

Repository files navigation

Simple Blog based on Laravel 5.3 php framework

Installation notes

Warning: need to update these installation notes when project is completed

Be sure that your envirement is setup to run a laravel installation. Check the official laravel site for the requirements https://laravel.com/docs/5.3/installation Tip: I recomment Homestead (vagrantbox)

In future releases i will provide a bash script to automate these tasks

  • composer install
  • mv .env.example .env
  • cmd:( php artisan key:generate ) generate a key inside the .env file
  • cmd: ( touch database/blog.sqlite ) to make an empte database file
  • php artisan migrate (this will create the database tables)
  • env: change the default first super user in the env file FSU_NAME=, FSU_EMAIL=, FSU_PSW=
  • cmd: ( php artisan db:seed ) to register the first super user
  • cmd: ( php artisan db:seed --class=FakeBlogWriters ) to get some fake users and posts to test
  • cmd: ( php artisan migrate:refresh --seed ) = reset db and register only the first super user

Development tips: Sass, Js, Browser sync

  • Since i'm using Homestead and mapped my domain to blog.local. The gulpfile.js browsersync setting is configured to use blog.local as gateway. Change it to your own url or remove it to use locahost as your default.
  • If u don't want any browserSync, just remove the .browserSync line in the gulpfile.js

Work in progress

  • Fresh Laravel 5.3 installation
  • Create blog.sqlite file in the database directory
  • Configuring database to sqlite
  • Configuring locales (Belgian Dutch)
  • Added super user
  • Only Super Users can register new admin's
  • Admin users can write, update and delete posts
  • Author can only view, update or delete own posts
  • Super Users have full control over other posts
  • Clean unused use classes in the controllers

Fixes

  • Laravel 5.3 early release paginator bug

Laravel PHP Framework

Build Status Total Downloads Latest Stable Version Latest Unstable Version License

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, queueing, and caching.

Laravel is accessible, yet powerful, providing tools needed for large, robust applications. A superb inversion of control container, expressive migration system, and tightly integrated unit testing support give you the tools you need to build any application with which you are tasked.

Official Documentation

Documentation for the framework can be found on the Laravel website.

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

Simple Laravel 5.3 blog project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages