Why this error is occurs I give you reason and solution? I created new controller in folder inside controller directory with this name Organization inside this folder i created new controller with this name ResponseTrendController i got same i got same errro in belwo code in this controller
<?php
namespace App\Http\Controllers;
use App\Services\ResponseTrendService;
use Illuminate\Http\Request;
class ResponseTrendController extends Controller
{
public function testing(){
}
}
this controller exist in Organization folder inside controller directory but in name I did give full path that why give this error your just need add folder name in name space like this
`namespace App\Http\Controllers\Organization;
and then use controller main class this one
use App\Http\Controllers\Controller;
hopefully your will resolve only these two line you need to add
namespace App\Http\Controllers\Organization;
use App\Http\Controllers\Controller;
just folder name of controller file thanks