Skip to content

Instantly share code, notes, and snippets.

@abishekrsrikaanth
Last active July 29, 2021 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abishekrsrikaanth/1375db92d0cdc2001b597f8fc14d7ea4 to your computer and use it in GitHub Desktop.
Save abishekrsrikaanth/1375db92d0cdc2001b597f8fc14d7ea4 to your computer and use it in GitHub Desktop.
<?php
namespace App\Nova\Resources;
class Plan extends Resource
{
public function fields(Request $request): array
{
return [
Text::make('Name'),
Textarea::make('Description')->alwaysShow(),
Tags::make('Features')
->allowEditTags(true)
->help('Hit Enter after every feature'),
Currency::make('Amount'),
Text::make('Stripe Plan Id')->readonly()->hideWhenCreating()->hideFromIndex(),
Text::make('Stripe Product Id')->readonly()->hideWhenCreating()->hideFromIndex(),
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment