samedi 13 juillet 2019

This action is unauthorized. Laravel AJAX Request

Suddenly I got this error. I haven't changed my code, but not it doesn't work.

Here is my router:

Route::group( [
    'middleware' => [ 'auth']
], function () {
    Route::group( [ 'prefix' => 'company' ], function () {
        Route::post( '/{id}/edit', 'CompanyApiController@editCompany' );
    } );
} );

And the CopmanyApiController class

public function editCompany(EditCompanyRequest $request) {
    // Handle request
}

I tried to debug, but still cannot find the root of the issue.

Please help.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire