
ショコラ
Laravel のディレクトリのパスを取得するには?
ディレクトリのパスを取得してファイルを指定するには、括弧の中に追加するパスを書きます。
storage_path().’/cache’ ではなく storage_path(‘cache’) とします。

もっさん先輩
/
base_path()
/app
app_path()
/config
config_path()
/database
database_path()
/public
public_path()
/resources
resource_path()
/storage
storage_path()