Not sure if i've missed this from the docs but is there anyway to populate a field in a create form with a default value?
eg.
Date::make('Date')->defaultValue(today())
This would be helpful with relationship fields also, especially with BelongsTo (example of using Spark with it's current_team_id column in the users table.
Not sure if i've missed this from the docs but is there anyway to populate a field in a create form with a default value?
eg.
This would be helpful with relationship fields also, especially with BelongsTo (example of using Spark with it's current_team_id column in the users table.
Would help reduce bits and pieces being added to model observers checking for missing values and populating them etc