I’m developping a package, I created all my classes and routes, but when it comes to access my routes, I keep getting the same message :
require(packages/uhgroup/UHTickets-laravel/src/routes/web.php): Failed
to open stream: No such file or directory
I don’t know what I did wrong…
I tried to use the command composer dumpautoload but I get the same error.
In addittion, I get a “Class UHGroupUhTicketsAppLivewireCreateTicket located in C:/Users/lilia/Documents/GitHub/UH-Tickets/vendor/uhgroup/uhtickets-laravel/srcappLivewireCreateTicket.php does not comply with psr-4 autoloading standard. Skipping.” message for every single class I made…
What’s wrong with my namespaces ?

Here are the structure of my files/folders in my project:
and my package’s AppServiceProvider:
<?php
namespace AppProviders;
use IlluminateSupportServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
$this->loadMigrationsFrom("packages/uhgroup/UHTickets-laravel/src/database/migrations");
$this->loadRoutesFrom("packages/uhgroup/UHTickets-laravel/src/routes");
}
}
I’m not going to lie, I’m not really sure of the namespace to write when developping a new class in a package.
For instance this is the namespace I put for my models : namespace UHGroupUhTicketsAppModels;
