Class 'App\Http\Controllers\DB' not found
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class regController extends Controller
{
public function regClient(Request $request){
DB::table('client')->insert([
['fio' => $request->get("fio"), 'votes' => 0],
['gender' => $request->get("gender"), 'votes' => 0]
]);
return 'Ок';
}
}
namespace App\Http\Controllers;
use Class\With\Namespace;
$obj = new \Class\With\Namespace;
$static = \Class\With\Namespace::staticMethod();