Initial commit

This commit is contained in:
Developer
2025-04-21 16:03:20 +02:00
commit 2832896157
22874 changed files with 3092801 additions and 0 deletions

36
nova/src/Metable.php Normal file
View File

@@ -0,0 +1,36 @@
<?php
namespace Laravel\Nova;
trait Metable
{
/**
* The meta data for the element.
*
* @var array
*/
public $meta = [];
/**
* Get additional meta information to merge with the element payload.
*
* @return array
*/
public function meta()
{
return $this->meta;
}
/**
* Set additional meta information for the element.
*
* @param array $meta
* @return $this
*/
public function withMeta(array $meta)
{
$this->meta = array_merge($this->meta, $meta);
return $this;
}
}