BookStack/app/File.php
Dan Brown 673c74ddfc
Started work on attachments
Created base models and started user-facing controls.
2016-10-09 18:58:22 +01:00

19 lines
292 B
PHP

<?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');
}
}