Advertisement
3gsxarakiri

Untitled

Jan 26th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Models;
  4.  
  5. use Illuminate\Database\Eloquent\Model;
  6.  
  7. class Partner extends Model
  8. {
  9.     protected $table = 'partners';
  10.     protected $fillable = ['uid', 'login', 'balance', 'hold', 'orders', 'approve', 'fail', 'done'];
  11.  
  12.  
  13.     public function inspection()
  14.     {
  15.         return $this->hasMany(UserInspection::class, 'partner_id', 'id');
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement