Level 22
You can set a default value for a field:
Text::make('Name')->default(function ($request) {
return $request->input('name')
});
https://nova.laravel.com/docs/3.0/resources/fields.html#default-values
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
How can I pre-fill a field on nova that will get the data from the url.
For example: /nova/resources/product/new?name=Product1
And then the name field will have the value "Product1"?
I've tried everything but I simply cannot find a solution.
Please or to participate in this conversation.