0

As mentioned in laravel doc https://laravel.com/docs/8.x/logging i used permission in logging.php configuration as follows

'single' => [
            'driver' => 'single',
            'tap' => [App\Providers\JsonFormatter::class],
            'path' => storage_path('logs/laravel.log'),
            'level' => 'debug',
            'permission' => 0777,
        ],

        'daily' => [
            'driver' => 'daily',
            'tap' => [App\Providers\JsonFormatter::class],
            'path' => storage_path('logs/'.php_sapi_name().'/laravel.log'),
            'level' => 'debug',
            'permission' => 0777,
            'days' => 1,
        ],

then I deleted all previous logs and then stored then logs again but every linked directory has drwxr-xr-x these permissions. Am I doing something wrong here?

Jonas Boshen
  • 75
  • 1
  • 1
  • 9
  • Did you apply 644 to the storage directory? – Héctor William Jun 07 '21 at 15:47
  • @HéctorWilliam I don't think so, I deleted all directories and did nothing permission wise – Jonas Boshen Jun 08 '21 at 04:04
  • I think that may be the problem, try to give permission to the folder ``chmod 644 storage -Rf``, additionally here you can check detailed recommendations to set things properly. https://stackoverflow.com/questions/30639174/how-to-set-up-file-permissions-for-laravel – Héctor William Jun 08 '21 at 11:48

0 Answers0