Code for Butter Blog Tutorial with Laravel
Code for Laravel + ButterCMS blog tutorial.
After cloning this repository, run the following command to install dependencies:
composer install
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
Finally, you can run the server with the following command:
php artisan serve
This will by default run the server at localhost:8000
.