for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Uccello\Core\Models;
use Uccello\Core\Database\Eloquent\Model;
class Link extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'links';
* The attributes that should be casted to native types.
* @var array
protected $casts = [
'data' => 'object',
];
* The attributes that are mass assignable.
protected $fillable = [
'module_id',
'label',
'icon',
'type',
'url',
'sequence',
'data',
protected function initTablePrefix()
$this->tablePrefix = env('UCCELLO_TABLE_PREFIX', 'uccello_');
}
public function module()
return $this->belongsTo(Module::class);