shahednasser / laravel-blog-tutorial

How to Build a Blog with Laravel (& Send Slack Notifications)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Butter Blog Tutorial

Code for Laravel + ButterCMS blog tutorial.

Installation

After cloning this repository, run the following command to install dependencies:

composer install

Configurations

Rename .env.example to .env:

mv .env.example .env

Then, add your ButterCMS API token and Slack Webhook URL:

BUTTER_API_KEY=
SLACK_WEBHOOK=

You also need to add an absolute path to your SQLite database:

DB_DATABASE=/path/to/butter-blog/database/database.sqlite

You can easily create an SQLite database with the following command:

touch database/database.sqlite

You then need to migrate the database tables:

php artisan migrate

And seed to add a fake user:

php artisan db:seed

Run Server

Finally, you can run the server with the following command:

php artisan serve

This will by default run the server at localhost:8000.

About

How to Build a Blog with Laravel (& Send Slack Notifications)


Languages

Language:PHP 96.3%Language:Blade 3.1%Language:JavaScript 0.6%