I'm trying to add libraries folder in laravel 5.0. I try to follow these steps [link](https://stackoverflow.com/questions/25695408/laravel-4-2-include-a-php-file-library-into-controller)
but I get an error.

```
Class 'Libraries\Myclass' not found

```

this is my composer.json

```
{
"autoload": {
        "classmap": [
            "database"            
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php",
            "app/Libraries"
        ]
    },
    "scripts": {
        "post-root-package-install": [
            "php -r \"copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ],
        "post-install-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postInstall",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postUpdate",
            "php artisan optimize"
        ]
    },
    "config": {
        "preferred-install": "dist"
    }
}

```

see the **autoload-dev**. I add my library (app/Libraries) folder and then I run this command **composer dump-autoload**
and here's my code of my class inside Libraries/Myclass.php

```
namespace Libraries\Myclass;

class Myclass{
    public function hello(){
        echo "hello world";
    }
}

```

I don't know If my code is good enough. Please correct me If I get wrong. I'm trying to explore more in laravel 5.