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
//Controllerprotected$resourceModel = MyClass::class;
protected$resourceSingle = MyClassResource::class;
...// this used to require the ID and casts where INT based. (some keys may be string based)// passing the route param is also better long term as is more laravelEsq
public function show(MyClass $record) {
return$this->handleShowAction($record);
}
//MyClassResourceprotectedstatic array $fieldGates = [
'gate_name' => [
'field 1',
'field 2',
],
'gate_two' => [
'field 3,
]
];
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Example implementations
This discussion was created from the release Gated Response Fields.
Beta Was this translation helpful? Give feedback.
All reactions