I implemented similar thing by using laravel-crud-wizard-free coupled with sanctum for authorizing the requests and I did not had this issue. Leave AI out of your coding habit and you will be better.
I suggest you check the laravel https://laravel.com/docs/11.x/sanctum#api-token-authentication documentation on how to use sanctum + make sure each project has its own DB schema.