first commit
This commit is contained in:
24
app/Models/MonthlyPosition.php
Normal file
24
app/Models/MonthlyPosition.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Models\User;
|
||||
|
||||
class MonthlyPosition extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
protected $table = 'monthly_positions';
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'position',
|
||||
'month',
|
||||
'group_levels'
|
||||
];
|
||||
|
||||
public function user_data()
|
||||
{
|
||||
return $this->hasMany(User::class,'id','user_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user