Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- class Document extends Model
- {
- protected $guarded = ['id'];
- public $timestamps = false;
- public function fileLocations()
- {
- return $this->hasMany(FileLocation::class, 'foreignId', 'documentId');
- }
- }
Add Comment
Please, Sign In to add comment