public function __construct(FreightPrice $freightprice, Truck $truck, Party $party, Station $station)
 {
     $this->truck = $truck->where('company_id', Auth::user()->company_id)->where('account_year_id', session('account'));
     $this->party = $party->where('company_id', Auth::user()->company_id)->where('account_year_id', session('account'));
     $this->station = $station->where('company_id', Auth::user()->company_id)->where('account_year_id', session('account'));
     $this->freightprice = $freightprice->where('company_id', Auth::user()->company_id)->where('account_year_id', session('account'));
 }
Ejemplo n.º 2
0
 public function __construct(Truck $truck, Driver $driver, State $state)
 {
     $this->truck = $truck->where('company_id', Auth::user()->company_id)->where('account_year_id', session('account'));
     $this->driver = $driver->where('company_id', Auth::user()->company_id)->where('account_year_id', session('account'));
     $this->state = $state->where('company_id', Auth::user()->company_id)->where('account_year_id', session('account'));
 }