for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Tinyissue package.
*
* (c) Mohamed Alsharaf <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tinyissue\Model\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Collection;
use Tinyissue\Model\Traits\User\Activity\RelationTrait;
/**
* Activity is model class for user activities.
* @author Mohamed Alsharaf <[email protected]>
* @property int $id
* @property string $data
* @property int $type_id
* @property int $parent_id
* @property int $user_id
* @property int $item_id
* @property int $action_id
class Activity extends Model
{
use RelationTrait;
* Timestamp enabled.
* @var bool
public $timestamps = true;
* Name of database table.
* @var string
protected $table = 'users_activity';
* List of allowed columns to be used in $this->fill().
* @var array
protected $fillable = ['type_id', 'parent_id', 'user_id', 'item_id', 'action_id', 'data'];
* List of columns and their cast data-type.
protected $casts = [
'data' => 'array',
];
}