Home screen improvements, testing for role, work on user/account models
This commit is contained in:
@@ -2,10 +2,25 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Rtm extends Model
|
||||
{
|
||||
protected $table = 'ab_rtm';
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'rtm';
|
||||
public $timestamps = FALSE;
|
||||
|
||||
/* RELATIONS */
|
||||
|
||||
/**
|
||||
* Subordinate RTM entries
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
||||
*/
|
||||
public function children()
|
||||
{
|
||||
return $this->hasMany(self::class,'parent_id');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user