暂存
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Illuminate\Database\Eloquent\Attributes;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class Touches
|
||||
{
|
||||
/**
|
||||
* @var array<int, string>
|
||||
*/
|
||||
public array $relations;
|
||||
|
||||
/**
|
||||
* Create a new attribute instance.
|
||||
*
|
||||
* @param array<int, string>|string ...$relations
|
||||
*/
|
||||
public function __construct(array|string ...$relations)
|
||||
{
|
||||
$this->relations = is_array($relations[0]) ? $relations[0] : $relations;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user