first commit

This commit is contained in:
denisdulici
2017-09-14 22:21:00 +03:00
commit 515bdaf5cd
598 changed files with 48030 additions and 0 deletions

View File

@@ -0,0 +1,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('DB_DATABASE', '') != '') {
// Share date format
$view->with(['date_format' => $this->getCompanyDateFormat()]);
}
}
}