Example #1
0
 public function getTitleAttribute()
 {
     $file = public_path() . '/' . $this->path;
     return \File::name($file) . '.' . \File::extension($file);
 }
Example #2
0
 /**
  * Returns the file extension.
  */
 public function getExtension()
 {
     return FileHelper::extension($this->file_name);
 }