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
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
35
+
```
36
+
/**
37
+
* Enter your own logic (e.g. if ($this->id === 1) to
38
+
* enable this user to be able to add/edit blog posts
39
+
*
40
+
* @return bool - true = they can edit / manage blog posts,
41
+
* false = they have no access to the blog admin panel
42
+
*/
43
+
public function canManageBinshopsBlogPosts()
44
+
{
45
+
// Enter the logic needed for your app.
46
+
// Maybe you can just hardcode in a user id that you
0 commit comments