'I want a way to give path to my files which are outside of public folder in laravel
suppose <link rel="stylesheet" href="{{asset('css/style.css')}}">
helps to get style.css file which is in public folder but similarly how can I access file which is in resources folder.
Solution 1:[1]
You can solve this problem by another command for creating a symbolic link by terminal/cmd/shh:
ln -s /path/to/laravel/storage/app/public /path/to/public/storage
This will create a folder in the public directory, which can be accessed from the public folder.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Karl Hill |