All assets like images, css, js and uploads folder are in "storage/app/public" folder.
Developers should keep images, css, js and uploads folder in "storage/app/public" folder.
Symbolic Link to "storage/app/public" in "public_html/storage" folder will be created automatically when you try to run site.
helper functions (in app/helpers/my_helper.php)
storage_uploads($path)
provides real path to "app/storage/app/public/uploads"
example : storage_uploads('widgets/phenom-300.jpg') will give us something like this : "/var/www/html/mlcms/site_files/storage/app/public/uploads/widgets/phenom-300.jpg"
storage_public($path)
provides real path to "app/storage/app/public/"
example : storage_public('css/abc.css') will give us something like this : "/var/www/html/mlcms/site_files/storage/app/public/css/abc.css"
asset_uploads($path)
provides path like "https://www.example.com/storage/uploads"
example : asset_uploads('widgets/phenom-300.jpg') will give us something like this : "https://www.example.com/storage/uploads/widgets/phenom-300.jpg"
asset_storage($path)
provides path like "https://www.example.com/storage"
example : asset_storage('css/abc.css') will give us something like this : "https://www.example.com/storage/css/abc.css"
Developers should keep images, css, js and uploads folder in "storage/app/public" folder.
Symbolic Link to "storage/app/public" in "public_html/storage" folder will be created automatically when you try to run site.
helper functions (in app/helpers/my_helper.php)
storage_uploads($path)
provides real path to "app/storage/app/public/uploads"
example : storage_uploads('widgets/phenom-300.jpg') will give us something like this : "/var/www/html/mlcms/site_files/storage/app/public/uploads/widgets/phenom-300.jpg"
storage_public($path)
provides real path to "app/storage/app/public/"
example : storage_public('css/abc.css') will give us something like this : "/var/www/html/mlcms/site_files/storage/app/public/css/abc.css"
asset_uploads($path)
provides path like "https://www.example.com/storage/uploads"
example : asset_uploads('widgets/phenom-300.jpg') will give us something like this : "https://www.example.com/storage/uploads/widgets/phenom-300.jpg"
asset_storage($path)
provides path like "https://www.example.com/storage"
example : asset_storage('css/abc.css') will give us something like this : "https://www.example.com/storage/css/abc.css"