Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Webmartin28's avatar

Trouble Adding Package

Alright, hoping someone can help me, because I'm lost. I'm new to Laravel, so I'm not sure what I'm doing wrong. First and foremost, I'm trying to install a Database Encryption package to my project (https://github.com/austinheap/laravel-database-encryption). I have followed every single step, and have gotten it to work locally on my machine.

The trouble is, when I go to upload it, and test it out on my shared hosting environment (Fast Comet), I get the following error:

(1/1) ErrorException
Class 'AustinHeap\Database\EncryptionFacade' not found

in AliasLoader.php line 80
at HandleExceptions->handleError(2, 'Class \'AustinHeap\Database\EncryptionFacade\' not found', '/home/azhearca/public_html/vendor/laravel/framework/src/Illuminate/Foundation/AliasLoader.php', 80, array('alias' => 'DatabaseEncryption'))

I am just not sure why I can get it to work on my local machine, but when I upload it, it can't find what it needs. Any ideas why it works in one place, but not the other? Thanks so much!

0 likes
5 replies
Webmartin28's avatar

I have. As I said - It works for me locally. Works exactly the way I was hoping it would. But when I upload my files to my server, I get the error. So the installation instructions worked... Just not when uploaded.

jlrdw's avatar
jlrdw
Best Answer
Level 75

Did you on local dump autoload, and when uploading, you may want to delete the vendor folder on host and re upload everything.

Backup first in case.

But if it works on local and not host, see if the host has a required extension not enabled, I bet that is the cause, usually is.

Requirements

Laravel 5.5.*
PHP >= 7.1.0
PHP OpenSSL extension

is PHP OpenSSL extension on the host?

1 like
Webmartin28's avatar

Thanks for your reply. I did do a dump-autoload, but hadn't uploaded afterwards. So either that fixed it, or something else fixed it. Either way, it's working now. But I'm leaning towards dump-autoload doing the trick. Thanks for that suggestion, and for your assistance!!

jlrdw's avatar

Glad you got it working. And also for future reference remember if you develop on Windows and upload to a Linux server that Linux is case sensitive. Good look and Godspeed in your programming career I hope you enjoy it as much as I have enjoyed my years of programming.

Please or to participate in this conversation.