Using fields in a table

...

use App\Models\User;
use Orchid\Screen\TD;
use Orchid\Screen\Fields\CheckBox;


TD::make('id')->render(function (User $user){
    return CheckBox::make('users[]')
            ->value($user->id)
            ->placeholder($user->name)
            ->checked(false);
});

...

Latest News