Guest User

Untitled

a guest
Dec 11th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App;
  4.  
  5. use Illuminate\Database\Eloquent\Model;
  6.  
  7. class Document extends Model
  8. {
  9. protected $guarded = ['id'];
  10. public $timestamps = false;
  11.  
  12. public function fileLocations()
  13. {
  14. return $this->hasMany(FileLocation::class, 'foreignId', 'documentId');
  15. }
  16.  
  17. }
Add Comment
Please, Sign In to add comment