Domain\Billet\Http\BilletController::pay PHP Method

pay() public method

public pay ( $billet_id )
    public function pay($billet_id)
    {
        $date = Request::only('discharge_date');
        if (is_null($date)) {
            $date = Carbon::now();
        } else {
            $date = Carbon::parse($date['discharge_date']);
        }
        return $this->repo->pay($billet_id, $date);
    }