© 2026 Hedgehog Software, LLC
id
title
description
creator_id
due_date
parent_id
type
TextInput::make('parent_id')
return $form ->schema([ TextInput::make('title') ->required() ->autofocus(), Forms\Components\MultiSelect::make('user_id') ->label('Assigned to') ->relationship('assignees','user_id') ->multiple() ->options(User::pluck('name','id')->toArray()), DatePicker::make('due_date') ->label('Due Date') ->minDate(now()), TextInput::make('creator_name') ->label('Created by') ->default(auth()->user()->name) ->disabled() ->hint('Creator: '.auth()->user()->name) ->hintIcon('tabler-info-circle'), TextInput::make('creator_id') ->default(auth()->user()->id) ->hidden(), Textarea::make('description')->required(), Forms\Components\Repeater::make('subtask') ->schema([ TextInput::make('title')->required(), Textarea::make('description')->required(), TextInput::make('parent_id') ->default() // this id of the task ->hidden(), ]) ->createItemButtonLabel('Add subtask') ->collapsed() ]);