add nova
This commit is contained in:
26
nova/src/WithIcon.php
Normal file
26
nova/src/WithIcon.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Laravel\Nova;
|
||||
|
||||
trait WithIcon
|
||||
{
|
||||
/**
|
||||
* The type of icon that should represent the item.
|
||||
*
|
||||
* @var string|null
|
||||
*/
|
||||
public $icon = null;
|
||||
|
||||
/**
|
||||
* Set the content to be used for the item's icon.
|
||||
*
|
||||
* @param string $icon
|
||||
* @return $this
|
||||
*/
|
||||
public function withIcon($icon)
|
||||
{
|
||||
$this->icon = $icon;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user