public function __construct(Model $model = null) { $this->model = $model; $this->path = app('router')->current()->getPath(); $this->elementId .= uniqid(); }