Created
August 6, 2019 17:07
-
-
Save codebykyle/672935dede6423b0d172e4e86f78c89e to your computer and use it in GitHub Desktop.
Split Fields Function Example Usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ExampleUsage extends Resource | |
{ | |
... | |
public function fieldsIndex(Request $request) | |
{ | |
return [ | |
... | |
]; | |
} | |
/** | |
* Get the fields displayed by the resource. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @return array | |
*/ | |
public function fieldsDisplay(Request $request) | |
{ | |
return [ | |
... | |
]; | |
} | |
public function fieldsForm(Request $request) | |
{ | |
return [ | |
... | |
]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment