mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-25 03:35:35 +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');
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|