More Laravel/AdminLTE updates

This commit is contained in:
Deon George
2019-11-23 12:51:30 +11:00
parent 6a17fd3716
commit bafc34b1c0
26 changed files with 410 additions and 565 deletions

View File

@@ -22,13 +22,14 @@ class Photo extends Abstracted\Catalog
/**
* Date the photo was taken
*/
public function date_taken()
public function date_taken(): string
{
return $this->date_created ? (date('Y-m-d H:i:s',$this->date_created).($this->subsectime ? '.'.$this->subsectime : '')) : 'UNKNOWN';
}
/**
* Determine the new name for the image
* @todo Implement in Parent
*/
public function file_path($short=FALSE,$new=FALSE)
{