Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class Partner extends Model
- {
- protected $table = 'partners';
- protected $fillable = ['uid', 'login', 'balance', 'hold', 'orders', 'approve', 'fail', 'done'];
- public function inspection()
- {
- return $this->hasMany(UserInspection::class, 'partner_id', 'id');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement