[8.x] Use `getRealPath` to ensure class name is resolved (#34653)
[8.x] Use `getRealPath` to ensure class name is resolved (#34653)

When trying to register a new path in the `Kernel` class of your application, and the path contains `..`, the classname isn't generated correctly in https://github.com/laravel/framework/blob/8.x/src/Illuminate/Foundation/Console/Kernel.php#L223-L227

By using `getRealPath`, the real path is resolved and the classname can be generated correctly.
leo108/laravel_framework,driesvints/framework,morrislaptop/framework,crynobone/framework,cybercog/framework,samlev/framework,arturock/framework,tomschlick/framework,arturock/framework,hafezdivandari/framework,mul14/laravel-framework,JosephSilber/framework,mul14/laravel-framework,dwightwatson/framework,leo108/laravel_framework,JamesForks/framework,laravel/framework,bytestream/framework,dwightwatson/framework,laravel/framework,notebowl/laravel-framework,lucasmichot/framework,cybercog/framework,tomschlick/framework,notebowl/laravel-framework,arturock/framework,driesvints/framework,cybercog/framework,bytestream/framework,morrislaptop/framework,lucasmichot/framework,mul14/laravel-framework,crynobone/framework,tomschlick/framework,JamesForks/framework,samlev/framework,mul14/laravel-framework,hafezdivandari/framework,stevebauman/framework,JosephSilber/framework,stevebauman/framework