fix psr2
This commit is contained in:
@@ -14,7 +14,7 @@ class ImageController extends Controller
|
||||
public function users(User $user)
|
||||
{
|
||||
foreach (auth()->user()->images as $image) {
|
||||
if(File::exists(storage_path('app/public/'.$image->path))) {
|
||||
if (File::exists(storage_path('app/public/'.$image->path))) {
|
||||
File::delete(storage_path('app/public/'.$image->path));
|
||||
auth()->user()->images()->where('id', $image->id)->delete();
|
||||
}
|
||||
@@ -39,7 +39,7 @@ class ImageController extends Controller
|
||||
public function memos(Memo $memo)
|
||||
{
|
||||
foreach ($memo->images as $image) {
|
||||
if(File::exists(storage_path('app/public/'.$image->path))) {
|
||||
if (File::exists(storage_path('app/public/'.$image->path))) {
|
||||
File::delete(storage_path('app/public/'.$image->path));
|
||||
$memo->images()->where('id', $image->id)->delete();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user