Here is my component:
methods: {
reloadMessage() {
setTimeout(function () {
this.$http.get(window.BaseUrl + '/message/inbox');
}, 1500);
}
}
And here are my routes:
Route::group(['prefix' => 'message','as'=>'messeage.'],function(){
Route::get('inbox', ['as'=>'inbox','uses'=>'MessageController@index']);
});
However, when the code is executed, I encounter an error:
Uncaught TypeError: Cannot read property 'get' of undefined
Any suggestions on how to solve this issue?