Al tratar de obtener registros de una tabla obtengo este error:
Illuminate\Contracts\Container\BindingResolutionException Target class [App\Http\Controllers\Usuarios\UsuariosController] does not exist.
web.php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\AuthControllers;
use App\Http\Controllers\Usuarios;
Route::get('ver-usuarios', [App\Http\Controllers\Usuarios\UsuariosController::class, 'index'])->name('ver-usuarios');
Controlador
<?php
namespace App\Http\Controllers\Usuarios;
namespace App\Models;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class UsuariosController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$usuarios_activos = User::where('estado','ACTIVO')->get();
dd($usuarios_activos);
}
}