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     'paths' => [

        base_path('content'),

        base_path('users'),

        resource_path('blueprints'),

        resource_path('fieldsets'),
<?php     'paths' => [

        base_path('content'),

        base_path('users'),

        resource_path('blueprints'),

        resource_path('fieldsets'),

        resource_path('forms'),
<?php         'taxonomies' => [

            'class' => Stores\TaxonomiesStore::class,

            'directory' => base_path('content/taxonomies'),

        ],



        'terms' => [
<?php         'terms' => [

            'class' => Stores\TermsStore::class,

            'directory' => base_path('content/taxonomies'),

        ],



        'collections' => [
<?php         'collections' => [

            'class' => Stores\CollectionsStore::class,

            'directory' => base_path('content/collections'),

        ],



        'entries' => [
<?php         'entries' => [

            'class' => Stores\EntriesStore::class,

            'directory' => base_path('content/collections'),

        ],



        'navigation' => [
<?php         'navigation' => [

            'class' => Stores\NavigationStore::class,

            'directory' => base_path('content/navigation'),

        ],



        'collection-trees' => [
<?php         'collection-trees' => [

            'class' => Stores\CollectionTreeStore::class,

            'directory' => base_path('content/trees/collections'),

        ],



        'nav-trees' => [
<?php         'nav-trees' => [

            'class' => Stores\NavTreeStore::class,

            'directory' => base_path('content/trees/navigation'),

        ],



        'globals' => [
<?php         'globals' => [

            'class' => Stores\GlobalsStore::class,

            'directory' => base_path('content/globals'),

        ],



        'asset-containers' => [
<?php         'asset-containers' => [

            'class' => Stores\AssetContainersStore::class,

            'directory' => base_path('content/assets'),

        ],



        'assets' => [
<?php         'users' => [

            'class' => Stores\UsersStore::class,

            'directory' => base_path('users'),

        ],



    ],
<?php     |




    'addons_path' => base_path('addons'),




    |--------------------------------------------------------------------------
<?php         'file' => [

            'driver' => 'file',

            'paths' => [

                'users' => base_path('users'),

                'roles' => resource_path('users/roles.yaml'),

                'groups' => resource_path('users/groups.yaml'),

            ],
<?php         }




        if ($pathIsInVendor = Str::contains($path, base_path('vendor'))) {

            $path = $fallbackPath;

        }