The base_path function returns the fully qualified path to your application's root directory. You may also use the base_path function to generate a fully qualified path to a given file relative to the project root directory:
<?php $path = base_path();

$path = base_path('vendor/bin');
<?php     {

        $path = $this->option('path');

        if (!is_null($path)) {

            return base_path($path);

        }



        if (File::isDirectory(app_path('Models'))) {