PHP code example of marshmallow / priceable

1. Go to this page and download the library: Download marshmallow/priceable library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

marshmallow / priceable example snippets


Currency::getUserCurrent();
Currency::getExceptUserCurrent()

@foreach (\Marshmallow\Priceable\Models\Currency::get() as $currency)
    <a href="{{ route('set-currency', $currency) }}">
        {{ $currency->name }}
    </a>
@endforeach
bash
php artisan vendor:publish --provider="Marshmallow\Priceable\PriceableServiceProvider" --tag="config" --force