-
-
Save saber13812002/75db95cc2ce47067e8730f3ff8e9def5 to your computer and use it in GitHub Desktop.
laravel cpanel problem with public_path storage folder voyager نحوه صحیح آپلود فایل در هاست لاراول
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add these two lines into .env | |
FILESYSTEM_DRIVER=parswebserver | |
STORAGE_PATH="/home/pardisa2/public_html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'parswebserver' => [ | |
'driver' => 'local', | |
'root' => env('STORAGE_PATH').'/app', | |
'url' => env('APP_URL').'/app', | |
'visibility' => 'public', | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// if you install or use third party admin panels like voyager | |
'storage' => [ | |
'disk' => env('FILESYSTEM_DRIVER', 'parswebserver'), | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
من یک سرور لاراول در پارس وب سرور گرفتم | |
مشکلم این بود که | |
سلام | |
من تونستم تمام مراحل نصب لاراول خودم رو انجام بدم | |
https://github.com/saber13812002/laravel-ecommerce-example | |
و الان سایت بالاس | |
http://pardisania.ir/ | |
تونستم با کمک شما و باز کردن پورت به کمک putty هم وصل بشم و مراحل رو طی کنم | |
مشکلی که دارم اینه که عکس هایی که در پوشه داخل public_heml هستش باز میشه مثلا assets ها | |
لاراول رو طبق ویدئو هایی که گفته بودین در پوشه /lara نصب کردم | |
و از پوشه ی public_html/index.php هم آدرس ها رو تنظیم کردم به همین پوشه بالایی | |
از طرف دیگه ولی فایل هایی که در پوشه storage هستش و به کمک یک شورتکات لینوکسی وصلش کردم به ریشه و روت سرور در /lara | |
با این دستور | |
ln -s /home/pardisa2/lara/storage/app/public /home/pardisa2/public_html/storage | |
حالا عکس هایی که به آدرس داخل پوشه storage وصل میشن رو نمیبینه | |
لطفا راهنمایی کنید | |
https://parswebserver.com/%D9%86%D8%AD%D9%88%D9%87-%D8%B5%D8%AD%DB%8C%D8%AD-%D8%A2%D9%BE%D9%84%D9%88%D8%AF-%D9%81%D8%A7%DB%8C%D9%84-%D8%AF%D8%B1-%D9%87%D8%A7%D8%B3%D8%AA-%D9%84%D8%A7%D8%B1%D8%A7%D9%88%D9%84/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment