->createOptionUsing(function ($data) { $post = new Post(); $post->fill($data); $post->save(); return $post->id;})
public static function getPages(): array { return [ 'index' => Pages\ListPosts::route('/'),// 'create' => Pages\CreatePosts::route('/create'), 'edit' => Pages\EditPosts::route('/{record}/edit'), ]; }