So there is no shell access on the server? How are you trying to call those commands?
Artisan commands not executing as CLI from code.
I have written the logic to get the user name from DB and used it as URL prefix in my web.php and grouped some routes using those name.
On my local machine it seems to working fine. In case of live server users can registered, but that user is not able to access the further routes as their username as prefix. When tried to access it shows 404.
When did the research it was due to routes not getting cleared. So, after new use registration added the below code clear cache. but still not working. How can i achieve this.
use Illuminate\Support\Facades\Artisan;
Artisan::call('route:clear'); Artisan::call('cache:clear');
Please or to participate in this conversation.