Can not post in laravel 5 over jquery Ajax
<p>I'm trying to send a <code>POST</code> request over jquery Ajax in Laravel 5.1 application. I got 405 method not allow, I'm search other questions on this forum but not find solution:</p>

<p>My <code>routes.php</code>:</p>

<pre><code>Route::post('backend/get_subdirectories',  'Backend\FileManagerController@get_subdirectories');
</code></pre>

<p>The Controller</p>

<pre><code>public function get_subdirectories(Request $request)
{
    dd($request);
}
</code></pre>

<p>And script</p>

<pre><code>var _token = $('meta[name="csrf-token"]').attr('content');
console.log(_token); //It work, I can get my token from meta tag
$.post(
            'http://domain.com/backend/get_subdirectories/',
            { _token: _token},
            function () {
                alert("success");
            })
            .fail(function () {
                alert("error");
            })
            .always(function () {
                alert("finished");
            });
</code></pre>

<p>And I got error 405 - Method not allowed</p>

<p>What am I wrong ?</p>