<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Item extends Model { use SoftDeletes; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'iid', 'item_uid', 'description', 'wann', 'wo', 'eid', 'cid', 'returned_at' ]; protected $primaryKey = 'iid'; /** * The attributes excluded from the model's JSON form. * * @var array */ protected $hidden = ['created_at','updated_at', 'deleted_at', 'returned_at', 'eid', 'iid', 'wann', 'wo']; public static function restored($callback) { } }