File: D:/HostingSpaces/SBogers10/lc-hydraulics.komma.nl/app/KommaApp/Machines/LacomMachineComposer.php
<?php
namespace App\KommaApp\Machines;
use Illuminate\View\View;
class LacomMachineComposer
{
static $lacomGroupMachines;
/**
* Bind data to the view.
*
* @param View $view
* @return void
*/
public function compose(View $view)
{
// Only load the specialisms once
if(!static::$lacomGroupMachines){
static::$lacomGroupMachines = config('machines');
}
$view->with('lacomGroupMachines', static::$lacomGroupMachines);
}
}