get path laravel code example
Example 1: laravel get project root
public_path(); // Path of public/
base_path(); // Path of application root
storage_path(); // Path of storage/
app_path(); // Path of app/
Example 2: laravel storage get file path
use Illuminate\Support\Facades\Storage;
$path = Storage::path('file.jpg');