How to add Libraries folder in laravel 5?
<p>I'm trying to add libraries folder in laravel 5.0. I try to follow these steps <a href="https://stackoverflow.com/questions/25695408/laravel-4-2-include-a-php-file-library-into-controller">link</a>
but I get an error.</p>

<pre><code>Class 'Libraries\Myclass' not found
</code></pre>

<p>this is my composer.json</p>

<pre><code>{
"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"
    }
}
</code></pre>

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

<pre><code>namespace Libraries\Myclass;

class Myclass{
    public function hello(){
        echo "hello world";
    }
}
</code></pre>

<p>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. </p>