Skip to content

Commit

Permalink
Merge pull request #11 from dniccum/bugfix/url-field-does-not-show
Browse files Browse the repository at this point in the history
Bugfix/url field does not show
  • Loading branch information
dniccum authored Oct 18, 2022
2 parents 1c2b582 + fe8d5e9 commit 67c887f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
3 changes: 2 additions & 1 deletion src/Nova/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Laravel\Nova\Fields\HasMany;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Fields\URL;
use Laravel\Nova\Http\Requests\NovaRequest;

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

Text::make(__('nova-webhooks::nova.url'), 'url')
URL::make(__('nova-webhooks::nova.url'), 'url')
->help(__('nova-webhooks::nova.url_help'))
->placeholder('https://hooks.zapier.com/hooks/catch/abcd1234')
->sortable()
Expand Down
11 changes: 0 additions & 11 deletions src/Nova/WebhookResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,6 @@ abstract class WebhookResource extends NovaResource
'url',
];

/**
* Create a new resource instance.
*
* @param \Illuminate\Database\Eloquent\Model|null $resource
* @return void
*/
public function __construct($resource)
{
parent::__construct($resource);
}

protected function optionGroup()
{
$array = WebhookModels::fieldArray();
Expand Down

0 comments on commit 67c887f

Please sign in to comment.