<?php namespace Bixo\CrossTrade\Policies; use Illuminate\Foundation\Auth\User as Authenticatable; trait OfferUsVehicleExim { /** * Determine if the given user can approve the given offer_us_vehicle. * * @param Authenticatable $user * * @return bool */ public function import(Authenticatable $user) { if ($user->canDo('cross_trade.offer_us_vehicle.import')) { return true; } return false; } /** * Determine if the given user can approve the given offer_us_vehicle. * * @param Authenticatable $user * * @return bool */ public function export(Authenticatable $user) { if ($user->canDo('cross_trade.offer_us_vehicle.export')) { return true; } return false; } }