Files
UNIT3D-Community-Edition/app/Models/ChatStatus.php
T
2019-05-15 23:14:15 -04:00

30 lines
674 B
PHP

<?php
/**
* NOTICE OF LICENSE.
*
* UNIT3D is open-sourced software licensed under the GNU General Public License v3.0
* The details is bundled with this project in the file LICENSE.txt.
*
* @project UNIT3D
*
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
* @author Poppabear
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ChatStatus extends Model
{
/**
* A Status Has Many Users.
*
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function users()
{
return $this->hasMany(User::class, 'chat_status_id', 'id');
}
}