<?php

namespace App\Http\Controllers;

use Broadway\CommandHandling\SimpleCommandBus;
use Command\CreatePostCommand;
use Command\CreatePostCommandHandler;
use Illuminate\Http\Request;

use App\Http\Requests;
use Illuminate\Queue\Queue;

/**
 * Class PostController
 * @package App\Http\Controllers
 */
class PostController extends Controller
{
    /**
     * @return \Illuminate\Contracts\View\View
     */
    public function create()
    {
        return \View::make('post.create');
    }

    /**
     * @throws \Exception
     */
    public function store()
    {
        $handler = new CreatePostCommandHandler();

        $commandBus = new SimpleCommandBus();
        $commandBus->subscribe($handler);

        $command = new CreatePostCommand('Post Title', 'Post Content');
        $commandBus->dispatch($command);


    }
    

}

Implement bare CreatePostCommand and Handler
Implement bare CreatePostCommand and Handler

No functionality as of yet just bare skeleton classes with minimum implementation to ensure it works
