Skip to content

Commit 005ba82

Browse files
authored
Update README.md
1 parent 0af8b19 commit 005ba82

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

README.md

+36-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,44 @@ And then in the terminal, run the following command.
2323

2424
`composer update`
2525

26+
### Migrate Database
27+
28+
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.
29+
30+
`php artisan migrate`
31+
32+
### Publish the package config
33+
34+
Up next, you need to publish the package's config file that includes some defaults for us. To publish that, run the following command.
35+
36+
`php artisan vendor:publish --tag=press-config`
37+
38+
You will now find the config file located in `/config/press.php`
39+
40+
### Create directory to hold posts
41+
42+
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.
43+
44+
`mkdir blogs`
45+
46+
### Sample Post
47+
48+
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.
49+
50+
```
51+
---
52+
title: My First Blog Post
53+
description: This is my very first blog post with Press
54+
---
55+
56+
# Extra Extra Extra!
57+
58+
You are now a blogger!
59+
```
60+
2661
# Course
2762
This repo holds is the source code for the Laravel Package Development course found here - https://coderstape.com/series/1-laravel-package-development
2863

2964
# In Progress
3065

31-
Be warned, this source code and course is for educational purposes only and may not be production ready. Use at your own risk.
66+
Be warned, this source code and course is for educational purposes only and may not be production ready. Use at your own risk.

0 commit comments

Comments
 (0)