Skip to content

Commit

Permalink
Remove Makeable trait in favor of a static method
Browse files Browse the repository at this point in the history
Fixes #144
  • Loading branch information
RVxLab committed Mar 7, 2021
1 parent df6e4a0 commit 921292b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/Tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,9 @@
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Laravel\Nova\Fields\Field;
use Laravel\Nova\Makeable;

/**
* Class Tab
* @package Eminiarts\Tabs
*
* @method static Tab make($title, array $fields)
*/

class Tab implements TabContract, \JsonSerializable, Arrayable
{
use Makeable;

/** @var string|\Closure */
protected $title;

Expand Down Expand Up @@ -57,6 +48,11 @@ public function __construct($title, array $fields)
$this->fields = $fields;
}

public static function make($title, array $fields): self
{
return new static($title, $fields);
}

/**
* @return \Closure|string
*/
Expand Down

0 comments on commit 921292b

Please sign in to comment.