Call to undefined method App\Http\Controllers\SubscriptionController::getMiddleware()
<p>I am calling the <code>\prelaunch</code>route in my application and this is how it is defined in my <code>routes.php</code>:</p>

<pre><code>`Route::get('/prelaunch', [ 'uses' =&gt; 'SubscriptionController@getReferrer', 'as' =&gt; 'subscriber.referral'], function () {
    return view('prelaunch');
});`
</code></pre>

<p>But unfortunately, I am getting:</p>

<p><code>Call to undefined method App\Http\Controllers\SubscriptionController::getMiddleware()</code></p>

<p>This is a draft of my SubscriptionController code: </p>

<pre><code>namespace App\Http\Controllers;

use App\Http\Manager\SubscriptionManager;
use Illuminate\Support\Facades\Request;


/**
 * Class SubscriptionController
 * @package App\Http\Controllers
 */
class SubscriptionController
{
    /**
     * @var \SubscriptionManager $subscriptionManager
     */
    protected $subscriptionManager;

    /**
     * SubscriptionController constructor.
     */
    //public function __construct(SubscriptionManager $subscriptionManager)
    public function __construct(SubscriptionManager $subscriptionManager)
    {
        $this-&gt;subscriptionManager = $subscriptionManager;
    }

    /**
     * @param Request $request
     * @return void
     */
    public function subscribe(Request $request)
    {
        $this-&gt;subscriptionManager-&gt;subscribeToList($request);
    }

    /**
     * @param Request $request
     * @return void
     */
    public function unsubscribe(Request $request)
    {
        $this-&gt;subscriptionManager-&gt;unsubscribeFromList($request);
    }

    /**
     * @return void
     */
    public function getReferrer()
    {
        print_r(Input::all());
        die;
        $utm_source = \Input::get('utm_source');


        return view('prelaunch');
    }
}
</code></pre>

<p>Any thoughts on this one? Please bare in mind that I am fairly new to Laravel.</p>