custon api for change language laravel code example Example: laravel app get locale App::getLocale();