mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-28 21:22:30 +00:00
19 lines
292 B
PHP
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');
|
|
}
|
|
|
|
|
|
}
|