php - Undefined Laravel path calls -
as laravel starter stuck following problem: "framework calls giving undefined call error".
running version: 5.2.14
https://laravel.com/docs/5.0/helpers#paths
base_path qualified path root of application install.
config_path qualified path config directory.
public_path qualified path public directory.
storage_path qualified path storage directory.
it seems intellisense seeing these methodes. when call them giving me hard time undefined methode errors. home.blade.php file:
<?php $storage_path = storage_path(); echo $storage_path ?> will result in: fatal error: call undefined function storage_path()
i did clean install of laravel , homestead , added <?php $storage_path = storage_path(); echo $storage_path; ?> welcome.blade.php , works.
the storage_path function in /vendor/laravel/framework/src/illuminate/foundation/helpers.php , should included in /vendor/laravel/framework/src/illuminate/support/composer.json.
i suggest verify helpers.php file exists , support package being loaded. , helpers.php has not been modified (the function public_path exists in same file)
Comments
Post a Comment