79183837

Date: 2024-11-13 07:49:22
Score: 0.5
Natty:
Report link

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

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why this
  • Low reputation (0.5):
Posted by: Muhammad Nawaz