So I am examining the code of Laravel
I'm looking at the Storage facade. I think this is the way it's being loaded. Correct me if I am wrong.
When ever we access the
Storage::get('someFile.txt');
The Storage is being accessed through the alias in the config am I correct?
'Storage' => Illuminate\Support\Facades\Storage::class
It will then access the this function I believe
protected static function getFacadeAccessor(){
return 'filesystem';
}
- And then I think the return filesystem is accessing the filesystem stored on the service container I believe? This is set up in the FilesystemServiceProvider attaching to the container.
protected function registerManager(){
$this->app->singleton('filesystem', function () {
return new FilesystemManager($this->app);
});
}
So overall The Facade is referencing the filesystem on the service container am I correct?