• 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
  • Image.php
  • Dan Brown's avatar
    Refactored Social auth into service, Made entity an abstract class · 3d18a04c
    3d18a04c Browse Files
    Dan Brown authored 2015-09-04 17:50:52 +0100
Image.php 342 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<?php

namespace Oxbow;


class Image extends Entity
{

    protected $fillable = ['name'];

    public function getFilePath()
    {
        return storage_path() . $this->url;
    }

    /**
     * Get the url for this item.
     * @return string
     */
    public function getUrl()
    {
        return public_path() . $this->url;
    }
}