My laravel project controllers does not exist. why?

I am new to laravel but when I coded in vscode everything worked fine, now when I uploaded it to shared server like hostinger now it does not work It says controller does not exist
…I am using laravel 11 and my php is 8.2 composer is 2

I was thinking it was namespace but id does not look like it… any help?

I tried everything from changing letters and controllers to writing permissions, even asking AI but nothing

web.php

<?php

use AppHttpControllersAdminAdminController;
use AppHttpControllersAdminCategoryController;
use AppHttpControllersAdminMeniuController;
use AppHttpControllersAdminTableController;
use AppHttpControllersAdminUzsakymasController;
use AppHttpControllersAuthRegisteredUserController;
use AppHttpControllersFrontendCategoryController as FrontendCategoryController;
use AppHttpControllersFrontendMeniuController as FrontendMeniuController;
use AppHttpControllersFrontendTableController as FrontendTableController;
use AppHttpControllersFrontendWelcomeController;
use AppHttpControllersProfileController;
use IlluminateSupportFacadesRoute;
use AppHttpMiddlewareAdmin;

// Frontend routes
Route::get('/', [WelcomeController::class, 'index']);
Route::get('/categories', [FrontendCategoryController::class, 'index'])->name('categories.index');
Route::get('/categories/{category}', [FrontendCategoryController::class, 'show'])->name('categories.show');
Route::get('/menius', [FrontendMeniuController::class, 'index'])->name('menius.index');
Route::get('/menius/{meniu}', [FrontendMeniuController::class, 'show'])->name('menius.show');
Route::get('/table', [FrontendTableController::class, 'index'])->name('table.index');

Route::get('/dashboard', function () {
    return view('dashboard');
})->middleware(['auth', 'verified'])->name('dashboard');

// Authenticated user routes
Route::middleware('auth')->group(function () {
    Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
    Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
    Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
});

// Admin routes
Route::middleware(['auth', Admin::class])->prefix('admin')->name('admin.')->group(function () {
    Route::get('/', [AdminController::class, 'index'])->name('index');
    Route::get('/register', [RegisteredUserController::class, 'create'])->name('register');
    Route::post('/register', [RegisteredUserController::class, 'store']);

    Route::resource('categories', CategoryController::class)->names([
        'index' => 'categories.index',
        'create' => 'categories.create',
        'store' => 'categories.store',
        'show' => 'categories.show',
        'edit' => 'categories.edit',
        'update' => 'categories.update',
        'destroy' => 'categories.destroy',
    ]);

    Route::resource('menius', MeniuController::class)->names([
        'index' => 'menius.index',
        'create' => 'menius.create',
        'store' => 'menius.store',
        'show' => 'menius.show',
        'edit' => 'menius.edit',
        'update' => 'menius.update',
        'destroy' => 'menius.destroy',
    ]);

    Route::resource('table', TableController::class)->names([
        'index' => 'table.index',
        'create' => 'table.create',
        'store' => 'table.store',
        'show' => 'table.show',
        'edit' => 'table.edit',
        'update' => 'table.update',
        'destroy' => 'table.destroy',
    ]);

    Route::resource('uzsakymas', UzsakymasController::class)->names([
        'index' => 'uzsakymas.index',
        'create' => 'uzsakymas.create',
        'store' => 'uzsakymas.store',
        'show' => 'uzsakymas.show',
        'edit' => 'uzsakymas.edit',
        'update' => 'uzsakymas.update',
        'destroy' => 'uzsakymas.destroy',
    ]);
});

require __DIR__.'/auth.php';

like my
WelcomeController.php

<?php

namespace AppHttpControllersFrontEnd;

use AppHttpControllersController;
use AppModelsCategory;
use AppModelsMeniu;
use IlluminateHttpRequest;

class WelcomeController extends Controller
{
    public function index()
    {
        $savaite = Category::where('name', 'Pirma savaite')->first();

        return view('welcome', compact('savaite'));

    }
}

New contributor

Lukas Juckevičius is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật