for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of questocat/laravel-rally package.
*
* (c) questocat <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Questocat\Rally\Models;
use Illuminate\Database\Eloquent\Model;
class Follower extends Model
{
/**
* Follower construct.
* @param array $attributes
public function __construct(array $attributes = [])
$this->table = config('rally.followable_table', 'followables');
parent::__construct($attributes);
}
* Returns the entity that followed this entity.
* @return \Illuminate\Database\Eloquent\Model
public function followable()
return $this->morphTo(config('rally.followable_prefix', 'followable'));