Fixed some database migration stuff.

This commit is contained in:
James Cole
2016-01-16 21:32:36 +01:00
parent 493c71b89e
commit fe30850568
2 changed files with 14 additions and 4 deletions

View File

@@ -9,4 +9,14 @@ use Illuminate\Database\Eloquent\Model;
*/
class Component extends Model
{
protected $fillable = ['user_id', 'name', 'class'];
/**
* @return array
*/
public function getDates()
{
return ['created_at', 'updated_at', 'deleted_at'];
}
}