mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-28 01:49:28 +01:00
53 lines
825 B
PHP
53 lines
825 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use App\Classes\Options;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Group extends Model
|
|
{
|
|
|
|
/**
|
|
* model's array form.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = ['name'];
|
|
|
|
|
|
/**
|
|
* The accessors to append to the model's array form.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $appends = [];
|
|
|
|
|
|
/**
|
|
* The attributes that should be hidden for arrays.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $hidden = ['created_at', 'updated_at'];
|
|
|
|
|
|
/**
|
|
* The attributes that should be cast.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $casts = [
|
|
'twofaccounts_count' => 'integer',
|
|
];
|
|
|
|
|
|
/**
|
|
* Get the TwoFAccounts of the group.
|
|
*/
|
|
public function twofaccounts()
|
|
{
|
|
return $this->hasMany('App\TwoFAccount');
|
|
}
|
|
}
|