SHARE
TWEET

Untitled

3gsxarakiri Jan 26th, 2017 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top