add nova
This commit is contained in:
21
nova/src/ResourceToolElement.php
Normal file
21
nova/src/ResourceToolElement.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Laravel\Nova;
|
||||
|
||||
use Laravel\Nova\Fields\FieldElement;
|
||||
|
||||
class ResourceToolElement extends FieldElement
|
||||
{
|
||||
/**
|
||||
* Create a new resource tool.
|
||||
*
|
||||
* @param string $component
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($component)
|
||||
{
|
||||
parent::__construct($component);
|
||||
|
||||
$this->onlyOnDetail();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user