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 RoomItem.
*/
class RoomItem extends ChocolateyModel
{
* Disable Timestamps.
*
* @var bool
public $timestamps = false;
* The table associated with the model.
* @var string
protected $table = 'items';
* Primary Key of the Table.
protected $primaryKey = 'id';
* Store Function.
* An RoomItem can't be inserted by the CMS.
* Only by the Emulator
public function store()
throw new InvalidMutatorException('You cannot store an RoomItem Chocolatey. RoomItems are created by the Emulator.');
}