Files
UNIT3D-Community-Edition/app/Models/ChatStatus.php
T
Laravel Shift de5e3c2eba Remove unnecessary table name property
By convention, Laravel uses the "snake case", plural name of the class as the table name.
2019-05-09 00:05:18 +00:00

36 lines
762 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
{
/**
* The Database Table Used By The Model.
*
* @var string
*/
/**
* A Status Has Many Users.
*
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function users()
{
return $this->hasMany(User::class, 'chat_status_id', 'id');
}
}