for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Models;
use Backpack\CRUD\app\Models\Traits\CrudTrait;
use Illuminate\Database\Eloquent\Model;
/**
* @mixin IdeHelperCoupon
*/
class Coupon extends Model
{
use CrudTrait;
Backpack\CRUD\app\Models\Traits\CrudTrait
App\Models\Coupon
$fakeColumns
$identifiableAttribute
$Type
protected $guarded = ['id'];
/*
|--------------------------------------------------------------------------
| FUNCTIONS
| RELATIONS
| SCOPES
| ACCESORS
public function getPriceAttribute($value)
return $value / 100;
}
| MUTATORS
public function setPriceAttribute($value)
$this->attributes['price'] = $value * 100;