for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Gamer\Models;
use Support\Models\Base;
class Point extends Base
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
'pointable_type',
'pointable_id',
'point_type_id'
];
protected $mappingProperties = array(
* User Info
'name' => [
'type' => 'string',
"analyzer" => "standard",
],
'pointable_type' => [
'pointable_id' => [
'point_type_id' => [
);
* Get all of the users that are assigned this tag.
public function users()
return $this->morphedByMany(\Illuminate\Support\Facades\Config::get('sitec.core.models.user', \App\Models\User::class), 'pointable');
}
* Get all of the slaves that are assigned this tag.
public function persons()
return $this->morphedByMany(\Illuminate\Support\Facades\Config::get('sitec.core.models.person', \Telefonica\Models\Actors\Person::class), 'pointable');