You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,8 @@ Incredible features with a lightweight laravel blog package. I highly recommend
44
44
45
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
46
47
-
`public function canManageHessamCMSPosts()
47
+
```
48
+
public function canManageHessamCMSPosts()
48
49
{
49
50
// Enter the logic needed for your app.
50
51
// Maybe you can just hardcode in a user id that you
@@ -63,13 +64,18 @@ Incredible features with a lightweight laravel blog package. I highly recommend
63
64
// to the admin panel (but can still view posts)
64
65
65
66
return false;
66
-
}`
67
+
}
68
+
```
67
69
68
70
5- Create a directory in `public/` named `blog_images`
71
+
69
72
6- Login as ADMIN and setup your package: `/blog_admin/setup`
73
+
70
74
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`
75
+
```
76
+
Admin panel URI: /blog_admin
77
+
Front URI: /en/blog
78
+
```
73
79
74
80
### For Complete Setup Instructions (with video guide), please Visit [The Install Guide](https://hessam.binshops.com/laravel-blog-package#setup)
0 commit comments