33 lines
575 B
PHP
33 lines
575 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Provider extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'providers';
|
|
|
|
protected $fillable = [
|
|
'organization_id',
|
|
'username',
|
|
'password',
|
|
'code',
|
|
'status',
|
|
'header_token',
|
|
'token',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'password',
|
|
];
|
|
|
|
public function organization()
|
|
{
|
|
return $this->belongsTo(Organization::class, 'organization_id', 'id');
|
|
}
|
|
}
|