Enabled/Improved links to relationships
This commit is contained in:
@@ -39,10 +39,12 @@ class PhotoDelete extends Job implements ShouldQueue
|
||||
}
|
||||
|
||||
// Remove tags;
|
||||
// @todo
|
||||
if ($this->photo->Tags->count())
|
||||
$this->photo->Tags()->detach();
|
||||
|
||||
// Remove People;
|
||||
// @todo
|
||||
if ($this->photo->People->count())
|
||||
$this->photo->People()->detach();
|
||||
|
||||
// Make sure our parent is writable
|
||||
if (! is_writable(dirname($this->photo->file_path())))
|
||||
|
Reference in New Issue
Block a user