Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Jul 27, 2022
1 parent 10d9bf1 commit 1a7f194
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
4 changes: 2 additions & 2 deletions public/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/manifest.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"/app.js": "/app.js?id=a1c1c0343e37de4ea72208690c120f53",
"/manifest.js": "/manifest.js?id=0cc5f0283b7da6c1fadf6b7dea9928fd",
"/app.js": "/app.js?id=c24628075c6abfd273da711b5f1366e5",
"/manifest.js": "/manifest.js?id=69ba097856146816ebca1ca94f62dcc8",
"/app.css": "/app.css?id=0bb99fe4d3b7de1e41de3cd5ffed80b3",
"/vendor.js": "/vendor.js?id=780ab72bd26593240655dfab6f70bd66"
"/vendor.js": "/vendor.js?id=0d285d87ab627d82bd9b1acbbffc781c"
}
4 changes: 2 additions & 2 deletions public/vendor.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions src/Resources/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,16 @@ public function mapItem(ResourceRequest $request, Model $model): ModelResource
return new ModelResource($model);
}

/**
* Get the mappable abilities.
*
* @return array
*/
public function getAbilities(): array
{
return ['viewAny', 'create'];
}

/**
* Handle the created event.
*
Expand Down

0 comments on commit 1a7f194

Please sign in to comment.