File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 10
10
use Laravel \Nova \Fields \HasMany ;
11
11
use Laravel \Nova \Fields \ID ;
12
12
use Laravel \Nova \Fields \Text ;
13
+ use Laravel \Nova \Fields \URL ;
13
14
use Laravel \Nova \Http \Requests \NovaRequest ;
14
15
15
16
class Webhook extends WebhookResource
@@ -31,7 +32,7 @@ public function fields(NovaRequest $request)
31
32
->sortable ()
32
33
->rules ('required ' , 'max:255 ' ),
33
34
34
- Text ::make (__ ('nova-webhooks::nova.url ' ), 'url ' )
35
+ URL ::make (__ ('nova-webhooks::nova.url ' ), 'url ' )
35
36
->help (__ ('nova-webhooks::nova.url_help ' ))
36
37
->placeholder ('https://hooks.zapier.com/hooks/catch/abcd1234 ' )
37
38
->sortable ()
Original file line number Diff line number Diff line change @@ -36,17 +36,6 @@ abstract class WebhookResource extends NovaResource
36
36
'url ' ,
37
37
];
38
38
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
-
50
39
protected function optionGroup ()
51
40
{
52
41
$ array = WebhookModels::fieldArray ();
You can’t perform that action at this time.
0 commit comments