Logo white

Alexey Boroda / akaunting

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • akaunting
  • app
  • Http
  • ViewComposers
  • All.php
  • first commit
    b7c7a5f6
    Alexey Boroda authored
    2018-10-22 16:42:06 +0300  
    Browse Code ยป
All.php 469 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?php

namespace App\Http\ViewComposers;

use App\Traits\DateTime;
use Illuminate\View\View;

class All
{
    use DateTime;

    /**
     * Bind data to the view.
     *
     * @param  View  $view
     * @return void
     */
    public function compose(View $view)
    {
        // Make sure it's installed
        if (env('APP_INSTALLED')) {
            // Share date format
            $view->with(['date_format' => $this->getCompanyDateFormat()]);
        }
    }
}