Skip to content

Commit 67c887f

Browse files
authored
Merge pull request #11 from dniccum/bugfix/url-field-does-not-show
Bugfix/url field does not show
2 parents 1c2b582 + fe8d5e9 commit 67c887f

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/Nova/Webhook.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Laravel\Nova\Fields\HasMany;
1111
use Laravel\Nova\Fields\ID;
1212
use Laravel\Nova\Fields\Text;
13+
use Laravel\Nova\Fields\URL;
1314
use Laravel\Nova\Http\Requests\NovaRequest;
1415

1516
class Webhook extends WebhookResource
@@ -31,7 +32,7 @@ public function fields(NovaRequest $request)
3132
->sortable()
3233
->rules('required', 'max:255'),
3334

34-
Text::make(__('nova-webhooks::nova.url'), 'url')
35+
URL::make(__('nova-webhooks::nova.url'), 'url')
3536
->help(__('nova-webhooks::nova.url_help'))
3637
->placeholder('https://hooks.zapier.com/hooks/catch/abcd1234')
3738
->sortable()

src/Nova/WebhookResource.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,6 @@ abstract class WebhookResource extends NovaResource
3636
'url',
3737
];
3838

39-
/**
40-
* Create a new resource instance.
41-
*
42-
* @param \Illuminate\Database\Eloquent\Model|null $resource
43-
* @return void
44-
*/
45-
public function __construct($resource)
46-
{
47-
parent::__construct($resource);
48-
}
49-
5039
protected function optionGroup()
5140
{
5241
$array = WebhookModels::fieldArray();

0 commit comments

Comments
 (0)