PHP code example of jelte-ten-holt / in-other-shops
1. Go to this page and download the library: Download jelte-ten-holt/in-other-shops 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/ */
jelte-ten-holt / in-other-shops example snippets
use InOtherShops\Pricing\Contracts\HasPrices;
use InOtherShops\Pricing\Concerns\InteractsWithPrices;
use InOtherShops\Media\Contracts\HasMedia;
use InOtherShops\Media\Concerns\InteractsWithMedia;
class Product extends Model implements HasPrices, HasMedia
{
use InteractsWithPrices;
use InteractsWithMedia;
}
// config/pricing.php
return [
'models' => [
'price' => App\Models\CustomPrice::class,
],
];