Skip to content

Instantly share code, notes, and snippets.

@vineeth030
Created July 10, 2020 07:29
Show Gist options
  • Save vineeth030/a26a6faaf2ac89fbbd5fd733e4e6f1f0 to your computer and use it in GitHub Desktop.
Save vineeth030/a26a6faaf2ac89fbbd5fd733e4e6f1f0 to your computer and use it in GitHub Desktop.
<?php
public function fields(Request $request)
{
return [
ID::make()->sortable(),
Text::make('Name'),
Text::make('Description'),
Tags::make('tags')
// I need an author_id field here.
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment