selamlar şöle bir hata alıyorum
Class "App\Models\Products" not found
ayrıca kodlarım bunlar birtürlü çalıştıramadım
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App;
use DB;
use App\Models\Products;
use App\Http\Resources\ProductResource;
use Illuminate\Http\Response;
class ProductController extends ApiController
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$users = DB::table('products')->get();
return response(['data',$users,'message' => 'veriler çekildi'],200);
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
{
$al= Products::where('id',$id)->first();
if($al){
return $this->apiResponse(ResultType::Success, $al,'veriler çekilmiş',200);
}
else{
return $this->apiResponse(ResultType::Error, null,'model hatasına yakalandık!!',404);
}
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
//
}
}