File.php 292 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 <?php namespace BookStack; class File extends Ownable { protected $fillable = ['name', 'order']; /** * Get the page this file was uploaded to. * @return mixed */ public function page() { return $this->belongsTo(Page::class, 'uploaded_to'); } }