<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class CustomPathServiceProvider extends ServiceProvider
{
    /**
     * Register services.
     */
    public function register(): void
    {
        //
    }

    /**
     * Bootstrap services.
     */
    public function boot()
    {
        // Override the public path to be two levels up from the default public directory
        app()->singleton('path.public', function () {
            return base_path('..'); // Go up one level from base_path
        });
    }
}
