What i have tried:
1) Install php7.2
2) Install Composer
3) run command composer global require "laravel/installer"
But when i run laravel new blog the output error is the following:
The provided cwd does not exist.
The provided cwd does not exist means that the Current Working Directory does not exist which means that laravel new command was unable to create the directory 'blog' because you do not have the permission to do so.
What you can do is to change the permissions for that directory, so the command is able to create the working directory
in App\Providers\AppServiceProvider in register function I commented these lines of code and it worked
before:
public function register()
{
$this->app->bind('path.public', function() {
return realpath(base_path().'/../public_html');
});
}
after:
public function register()
{
//$this->app->bind('path.public', function() {
//return realpath(base_path().'/../public_html');
});
}
laravel newinstaller entirely pointless. It's just a shortcut for thecomposer create-project --prefer-dist laravel/laravelcommand. I just skip it entirely.)