13 lines
165 B
PHP
13 lines
165 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\ModelObservers;
|
||
|
|
||
|
use App\Label;
|
||
|
|
||
|
class LabelObserver
|
||
|
{
|
||
|
public function creating(Label $label)
|
||
|
{
|
||
|
$label->generateAlias();
|
||
|
}
|
||
|
}
|