Laravel Storage File Permission (Best Solution)

By: System Administrator On: Aug 26, 2019 DevOps 205

ဘာရယ်တော့ မဟုတ်ပါဘူး Laravel မှာ အဖြစ်များတဲ့ Storage File Log File ကို Permission မရှိလို့ error တက်တဲ့အခါမှာ log ရိုက်တဲ့အခါ ဖြစ်တတ်တဲ့ Error လေးအတွက် Solution တခုကောင်းကောင်းလေး ရှာတွေ့ထားလို့ပါ။

အသေးစိတ်တော့ မရေးတော့ဘူးဗျာ

အောက်က Command လေးသာ ကိုယ့် Laravel Project Folder path ထဲမှာ run ပေးလိုက်ပါ။

sudo chgrp -R www-data storage bootstrap/cache

sudo chmod -R ug+rwx storage bootstrap/cache

အားလုံးပဲ အဆင်ပြေကြပါစေ