Skip to content

Commit 10ef6b6

Browse files
committed
readme update
1 parent fac0deb commit 10ef6b6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,26 @@ Incredible features with a lightweight laravel blog package. I highly recommend
2121

2222
### Quick and easy installation
2323
1- Install via composer
24+
2425
`composer require binshops/laravel-blog`
26+
2527
For a fresh Laravel installation run the following too:
28+
2629
```
2730
composer require laravel/ui
2831
php artisan ui vue --auth
2932
```
33+
3034
2- Run the following two commands to copy config file, migration files, and view files
35+
3136
`php artisan vendor:publish --provider="HessamCMS\HessamCMSServiceProvider"`
37+
3238
3- Execute migrations to create tables
39+
3340
`php artisan migrate;`
41+
3442
4- You must add one method to your \App\User (in laravel 8 \App\Models\User) model. As the name of this method shows it determines which user can manage posts. Place your logic there
43+
3544
```
3645
/**
3746
* Enter your own logic (e.g. if ($this->id === 1) to
@@ -62,9 +71,13 @@ php artisan ui vue --auth
6271
return false;
6372
}
6473
```
74+
6575
5- Create a directory in `public/` named `blog_images`
76+
6677
6- Login as admin and setup your package: `/blog_admin/setup`
78+
6779
- Congrats! Your blog is ready to use. (URLs are customizable in the config file)
80+
6881
Admin panel URI: `/blog_admin`
6982
Front URI: `/en/blog`
7083

0 commit comments

Comments
 (0)