for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Models;
use Sofa\Eloquence\Metable\InvalidMutatorException;
/**
* Class UserCurrency
* @package App\Models
*/
class UserCurrency extends ChocolateyModel
{
* Disable Timestamps
*
* @var bool
public $timestamps = false;
* The table associated with the model.
* @var string
protected $table = 'users_currency';
* Primary Key of the Table
protected $primaryKey = 'id';
* Store Function
* A UserCurrency can't be inserted by the CMS.
* Only by the Emulator
public function store()
throw new InvalidMutatorException("You cannot store a UserCurrency by Chocolatey. UserCurrency are created by the Emulator.");
}