@@ 9-21 (lines=13) @@ | ||
6 | use Webfactor\Laravel\Backpack\FluentSyntax\Traits\Prefixable; |
|
7 | use Webfactor\Laravel\Backpack\FluentSyntax\Traits\Relationable; |
|
8 | ||
9 | class SelectColumn extends CrudColumnAbstract |
|
10 | { |
|
11 | protected $type = 'select'; |
|
12 | ||
13 | public function __construct(string $name, string $model, string $relation, string $attribute) |
|
14 | { |
|
15 | parent::__construct($name); |
|
16 | ||
17 | $this->options['model'] = $model; |
|
18 | $this->options['entity'] = $relation; |
|
19 | $this->options['attribute'] = $attribute; |
|
20 | } |
|
21 | } |
|
22 |
@@ 9-21 (lines=13) @@ | ||
6 | use Webfactor\Laravel\Backpack\FluentSyntax\Traits\Prefixable; |
|
7 | use Webfactor\Laravel\Backpack\FluentSyntax\Traits\Relationable; |
|
8 | ||
9 | class SelectMultipleColumn extends CrudColumnAbstract |
|
10 | { |
|
11 | protected $type = 'select_multiple'; |
|
12 | ||
13 | public function __construct(string $name, string $model, string $relation, string $attribute) |
|
14 | { |
|
15 | parent::__construct($name); |
|
16 | ||
17 | $this->options['model'] = $model; |
|
18 | $this->options['entity'] = $relation; |
|
19 | $this->options['attribute'] = $attribute; |
|
20 | } |
|
21 | } |
|
22 |