app\models\PaymentMethod::imageUrl PHP Method

imageUrl() public method

public imageUrl ( ) : Illuminate\Contracts\Routing\UrlGenerator | string
return Illuminate\Contracts\Routing\UrlGenerator | string
    public function imageUrl()
    {
        return url(sprintf('/images/credit_cards/%s.png', str_replace(' ', '', strtolower($this->payment_type->name))));
    }