File "HasViewSharedData.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/spatie/laravel-package-tools/src/Concerns/Package/HasViewSharedData.php
File size: 286 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
namespace Spatie\LaravelPackageTools\Concerns\Package;
trait HasViewSharedData
{
public array $sharedViewData = [];
public function sharesDataWithAllViews(string $name, $value): static
{
$this->sharedViewData[$name] = $value;
return $this;
}
}