Answers for "laravel storage"

PHP
2

path of app directory in controller laravel

How to get base path(Project Root) in laravel ?
base_path(); // Path of application root


How to get storage folder path in laravel ?
storage_path(); // Path of storage/


How to get app folder path in laravel ?
app_path(); // Path of app/
Posted by: Guest on November-01-2020
0

laravel storage get file path

use Illuminate\Support\Facades\Storage;

$path = Storage::path('file.jpg');
Posted by: Guest on October-17-2020
1

laravel storage

use Illuminate\Support\Facades\Storage;

Storage::disk('local')->put('example.txt', 'Contents');
Posted by: Guest on July-14-2021
0

laravel store file

$path = $request->file('avatar')->store(
    'avatars', 'public'
);
Posted by: Guest on December-05-2020
0

laravel filesystem

$exists = Storage::disk('s3')->exists('file.jpg');
Posted by: Guest on October-06-2020

Browse Popular Code Answers by Language