Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class UserInspection extends Model
- {
- protected $table = 'user_inspections';
- protected $fillable = ['inspection_id', 'partner_id', 'status', 'disable_id', 'comment'];
- public function inspection()
- {
- return $this->belongsTo(Inspections::class);
- }
- public function partner()
- {
- return $this->belongsTo(Partner::class, 'id');
- }
- }
Add Comment
Please, Sign In to add comment