<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Container extends Model { use SoftDeletes; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'cid', 'name' ]; protected $primaryKey = 'cid'; /** * The attributes excluded from the model's JSON form. * * @var array */ protected $hidden = ['created_at', 'deleted_at', 'updated_at']; }