biscuit/package

laravel package to convert .md files to Html markup

1.0 2020-11-08 22:59 UTC

This package is auto-updated.

Last update: 2024-04-09 22:27:47 UTC


README

An elegant markdown-powered blog for the Laravel framework.

Install

And then in the terminal, run the following command.

Add these command

composer require biscuit/package

Migrate Database

Now that we have our package installed, we need to migrate the database to add the necessary tables for Press. In the command line, run the following command.

php artisan migrate

Publish the package config

Up next, you need to publish the package's config file that includes some defaults for us. To publish that, run the following command.

php artisan vendor:publish --tag=press-config

You will now find the config file located in /config/press.php

Create directory to hold posts

The last step in the installation, is to create a directory for your markdown files that Press will use to turn into your blog posts. By default, it is just a directory in the root directory of your project called blogs. You may change that in the config file we published in the previous step.

mkdir blogs

Sample Post

To create your first post, here's a sample markdown file to get you started. Copy and paste it into a .md file in your blogs diretory.

---
title: My First Blog Post
description: This is my very first blog post with Press
---

# Extra Extra Extra!

You are now a blogger!