How to create symlink from public/storage to storage/app/public in laravel?

后端 未结 5 956
悲&欢浪女
悲&欢浪女 2021-01-06 05:49

I have no idea on how to create symbolic link or symlink.

I am working on File system in laravel 5.2.

The document says th

5条回答
  •  执笔经年
    2021-01-06 06:27

    Added same code but still getting issue. Method link does not exist. currently i am adding link in my controller constructor.

    here is code:

           public function index()
      {
         $shots=[];
          App::make('files')->link(storage_path('app\public'), public_path('..\public\storage'));
         return View::make('adminpages.index',['shots'=>$shots]);
       }
    

提交回复
热议问题