mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
673c74ddfc
Created base models and started user-facing controls.
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');
|
|
}
|
|
|
|
|
|
}
|