Skip to content

Commit 781cca1

Browse files
committed
updates readme file
1 parent 0062528 commit 781cca1

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

README.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
# Complete Laravel Blog Package
1212
Have you worked with Wordpress? Developers call it wordpress-like laravel package.
1313

14+
### Contact us for any customization:
15+
16+
1417
### Lightweight and Comprehensive
1518

1619
Incredible features with a lightweight laravel blog package. I highly recommend it because:
@@ -27,10 +30,47 @@ Incredible features with a lightweight laravel blog package. I highly recommend
2730

2831
### Quick and easy installation
2932

30-
Install with following command and follow the instructions.
33+
1- Install the package:
3134

3235
composer require hessam/laravel-blogger
3336

37+
2- Run the following commands to copy config file, migration files, and view files
38+
39+
`php artisan vendor:publish --provider="HessamCMS\HessamCMSServiceProvider"`
40+
41+
3- Execute migrations to create tables
42+
43+
`php artisan migrate;`
44+
45+
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.
46+
47+
`public function canManageHessamCMSPosts()
48+
{
49+
// Enter the logic needed for your app.
50+
// Maybe you can just hardcode in a user id that you
51+
// know is always an admin ID?
52+
if ( $this->id === 1
53+
&& $this->email === "your_admin_user@your_site.com"
54+
){
55+
56+
// return true so this user CAN edit/post/delete
57+
// blog posts (and post any HTML/JS)
58+
59+
return true;
60+
}
61+
62+
// otherwise return false, so they have no access
63+
// to the admin panel (but can still view posts)
64+
65+
return false;
66+
}`
67+
68+
5- Create a directory in `public/` named `blog_images`
69+
6- Login as ADMIN and setup your package: `/blog_admin/setup`
70+
7- Congrats! Your blog is ready to use. (URLs are customizable in the config file)
71+
`Admin panel URI: /blog_admin`
72+
`Front URI: /en/blog`
73+
3474
### For Complete Setup Instructions (with video guide), please Visit [The Install Guide](https://hessam.binshops.com/laravel-blog-package#setup)
3575

3676
To see package on Packagist click this [Link](https://packagist.org/packages/hessam/laravel-blogger)

0 commit comments

Comments
 (0)