0

I'm trying to make my slim3 application work on my VPS, but so far, I've had no luck. It works 100% on my windows machine, but when I move it to my Ubuntu 16.04 VPS, it is not working. I get this message "Message: Class 'app\views\auth\Auth' not found". The problem is, that I have no clue what is wrong. The class name is correct, and namespaces etc. are also correct. Feel free to ask me any questions you might have, in order to help me.

My container looks like this:

$container['auth'] = function($container) {
    return new \App\views\Auth\Auth;
  };

My composer.json

{
    "require": {
        "slim/slim": "^3.0",
        "slim/twig-view": "^2.2",
        "illuminate/database": "^5.4",
        "Respect/Validation": "^1.1",
        "slim/csrf": "^0.8.1",
        "slim/flash": "^0.2.0",
        "phpmailer/phpmailer": "^5.2"
    },
    "autoload": {
      "psr-4": {
        "App\\": "app"
      }
    }
}

1 Answers1

-1

I would suggest you to install composer locally in the project directory.That would help you.

Ayush28
  • 359
  • 3
  • 18
  • This is not an answer, it's a comment. Please add more text to your answer in order to help the OP get his question answered. At it's current state this is less helpful than most comments here. – Luca Kiebel Aug 22 '17 at 16:42