PHP code example of oobook / priceable
1. Go to this page and download the library: Download oobook/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/ */
oobook / priceable example snippets
namespace App\Models;
use Oobook\Priceable\Traits\HasPriceable;
class MyProduct extends Model
{
use HasPriceable;
// ... your model logic
}
php artisan vendor:publish --provider="Oobook\Priceable\LaravelServiceProvider" --tag="config"
php artisan migrate