I have installed Laravel 5.4 latest vesion in my Windows 7 64Bit, Uwamp local server.

I have already created following files in my "Custom" package that I am trying to register in Laravel:

**packages/custom/timeshow/composer.json:**

```
{
    "name": "custom/timeshow",
    "description": "Show Time in All Timezones",
    "type": "composer-plugin",
    "license": "GPL",
    "authors": [
        {
            "name": "Test Author",
            "email": "test1234@gmail.com"
        }
    ],
    "minimum-stability": "dev",
    "require": {},
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/",
            "Custom\\Timeshow\\": "packages/custom/timeshow/src"
        }
    }
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "post-create-project-cmd": [
            "php -r \"copy('.env.example', '.env');\"",
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist"
    }
}

```

**packages\custom\timeshow\src\TimeshowServiceProvider.php**

```
<?php

namespace Custom\Timeshow;

use Illuminate\Support\ServiceProvider;

class TimeshowServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        include __DIR__.'/routes.php';
        $this->app->make('Custom\Timeshow\TimeshowController');
    }
}

```

**packages\custom\timeshow\src\TimeshowController.php**

```
<?php
namespace Custom\Timeshow;

use App\Http\Controllers\Controller;
use Carbon\Carbon;

class TimeshowController extends Controller
{
    public function index($timezone)
    {
        echo Carbon::now($timezone)->toDateTimeString();
    }
}

```

**packages\custom\timeshow\src\routes.php**

```
<?php
Route::get('timeshow/{timezone}', 'Custom\Timeshow\TimeshowController@index');

```

Also included my service-provider in **config/app.php** like below:

```
Custom\Timeshow\TimeshowServiceProvider::class,

```

But even after all this, when I run the command `php artisan serve`, I get the below error:

```
[Symfony\Component\Debug\Exception\FatalErrorException]
  Class 'Custom\Timeshow\TimeshowServiceProvider' not found

```

Can someone point out what is wrong in this and assit in resolving it ?