sadok
12627
27
Laravel

Class 'App\Http\Controllers\Storage' not found

Posted 1 year ago by sadok
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Http\UploadedFile;
use App\User;
use App\Team;
use App\Club;

class TeamController extends Controller
{

public function destroy($id)
  {
    $team=Team::findOrFail($id);
    $team->delete();
    Storage::delete($team->logo);
    return response()->json(['data' => $team],200);
  }
}

Please sign in or create an account to participate in this conversation.