Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kristi11 committed Aug 6, 2024
1 parent f91f3ce commit eb6888e
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,36 @@
<img src="public/android-chrome-192x192.png" alt="Logo" width="80" height="80">
</a>

Disabled features:
### **Disabled features:**
* Profile editing (change on Adminpanelprovider.php)
* Permission management for user roles (change on RoleResource.php)
* User resource editing and deleting have been disabled (change on UserResource.php)
* Hero resource editing and deleting have been disabled (change on HeroResource.php)
* SectionColors resource editing and deleting have been disabled (change on SectionColorResource.php)

#### **To enable these features you need to comment the following functions on the desired resources:**

```
public static function canEdit(Model $record): bool
{
return false;
}
public static function canDelete(Model $record): bool
{
return false;
}
```

#### **You can also comment the can create function based on necessity of your app:**

```
public static function canCreate(): bool
{
$recordExists = SectionColors::exists();
return ! $recordExists;
}
```

<h3 align="center">Witty workflow</h3>

Expand Down

0 comments on commit eb6888e

Please sign in to comment.