Skip to content

Commit

Permalink
fix: Undefined variable $service when creating a new service
Browse files Browse the repository at this point in the history
  • Loading branch information
peaklabs-dev committed Jan 14, 2025
1 parent 9dca566 commit 11769f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/View/Components/services/advanced.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\View\Components\services;

use App\Models\Service;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
Expand All @@ -11,10 +12,9 @@ class advanced extends Component
/**
* Create a new component instance.
*/
public function __construct()
{
//
}
public function __construct(
public ?Service $service = null
) {}

/**
* Get the view / contents that represent the component.
Expand Down

0 comments on commit 11769f0

Please sign in to comment.