Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.

Commit

Permalink
Update MainController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar authored Jan 30, 2018
1 parent 80d704c commit e79e737
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Controllers/MainController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Helldar\Vk\Facade\Execute;
use Helldar\Vk\Facade\Friends;
use Helldar\Vk\Facade\Likes;
use Helldar\Vk\Facade\Messages;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Validation\UnauthorizedException;
Expand Down Expand Up @@ -169,4 +170,16 @@ public function execute($method = 'execute')

return (new Execute())->{$method}($method);
}

/**
* @param string $method
*
* @return mixed
*/
public function messages($method = 'send')
{
$this->checkAuth();

return (new Messages())->{$method}($method);
}
}

0 comments on commit e79e737

Please sign in to comment.