Target class [ImportTransaksiR13_Controller] does not exist

I was tried and still not find the problem.
I was re-check and not find any problem either on my route or controller
I hope anybody can help this

Target class [ImportTransaksiR13_Controller] does not exist.

This my route :

Route::get('/import_transaksi_r13', [ImportTransaksiR13_Controller::class, 'index'])->name('import_transaksi_r13')
Route::get('/transaksiR13', '[email protected]');
Route::get('/transaksiR13/export_excel', '[email protected]_excel');
Route::post('/transaksiR13/import_excel', '[email protected]_excel');

And this is my controller


namespace AppHttpControllers;

use IlluminateHttpRequest;

use AppTransaksiR13;

use Session;

use IlluminateSupportFacadesDB;
use AppImportsTransaksiR13Import;
use AppExportsTransaksiR13Export;
use MaatwebsiteExcelFacadesExcel;
use AppHttpControllersController;

class ImportTransaksiR13_Controller extends Controller
    public function index()
        $transaksi_r13 = Transaksi_r13::all();
        return view('import.transaksi_r13.index',['transaksi_r13'=>$transaksi_r13]);
    public function export_excel()
        return Excel::download(new TransaksiExportR13, 'Transaksi_R13.xlsx');


I’m using Laravel 8 and MySql for DB


Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

I believe you have not import the ImportTransaksiR13_Controller class inside your route file. Can you please show all codes from your routes.php?

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x