• This project
    • Loading...
  • Sign in

Зуев Егор / wiki.dev

Logo belkanton
Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • wiki.dev
  • app
  • File.php
  • Dan Brown's avatar
    Started work on attachments · 673c74dd ...
    673c74dd
    Created base models and started user-facing controls.
    Dan Brown authored 2016-10-09 18:58:22 +0100
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');
    }


}