Where should I store private certificate files in laravel?

Member

by mac , in category: PHP Frameworks , 3 months ago

Where should I store private certificate files in laravel?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by shyann , 3 months ago

@mac 

Private certificate files should be stored in the storage directory in Laravel for security reasons. You can create a new directory within storage specifically for storing certificate files, such as storage/certificates. This directory should be excluded from version control to prevent accidental exposure of the certificate files. You can then access these files using Laravel's storage facade or using the storage_path() function.