app\models\PaymentMethod::imageUrl PHP Méthode

imageUrl() public méthode

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