ApplicationVersionViewComposer.php 342 Bytes
Newer Older
1 2 3 4 5
<?php

namespace Modules\Core\Composers;

use Illuminate\Contracts\View\View;
6
use Modules\Core\Foundation\AsgardCms;
7 8 9 10 11

class ApplicationVersionViewComposer
{
    public function compose(View $view)
    {
12
        if (app('asgard.onBackend') === false) {
13 14
            return;
        }
15
        $view->with('version', AsgardCms::VERSION);
16 17
    }
}