mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
btc-meetups updated
This commit is contained in:
@@ -9,6 +9,7 @@ use Illuminate\Http\Request;
|
||||
use Laravel\Nova\Fields\BelongsTo;
|
||||
use Laravel\Nova\Fields\ID;
|
||||
use Laravel\Nova\Fields\Markdown;
|
||||
use Laravel\Nova\Fields\Select;
|
||||
use Laravel\Nova\Fields\Text;
|
||||
use Laravel\Nova\Http\Requests\NovaRequest;
|
||||
|
||||
@@ -82,6 +83,18 @@ class Meetup extends Resource
|
||||
->showStatistics()
|
||||
->setFileName(fn($originalFilename, $extension, $model) => md5($originalFilename).'.'.$extension),
|
||||
|
||||
Select::make(__('Community'), 'community')
|
||||
->options(
|
||||
[
|
||||
'einundzwanzig' => 'Einundzwanzig',
|
||||
'bitcoin' => 'Bitcoin',
|
||||
'satoshis_coffeeshop' => 'Satoshis Coffeeshop',
|
||||
]
|
||||
)
|
||||
->rules('required', 'string')
|
||||
->help(__('This is the community that the meetup belongs to. If a community is not listed, please contact the administrator.'))
|
||||
->hideFromIndex(),
|
||||
|
||||
Text::make('Name')
|
||||
->rules('required', 'string')
|
||||
->creationRules('unique:meetups,name')
|
||||
|
||||
Reference in New Issue
Block a user