hello im newbie in laravel, i tried to display page in laravel 9.52. i made blade file, resource controller, and call it in routes here is my route:
Route::resource('admin/portfolio', 'PortfolioController');
and here is my controller:
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class PortfolioController extends Controller
{
public function index()
{
//
return view("admin.portfolio");
}
admin mean is my portfolio blade saved in admin folder views.
i check the spelling file controller name but, there is no problem. i named my controller file as PortfolioController.php but it comes error when i tried to run it: Target class [controller name] does not exist.