celorodovalho / phpdfbot

Bot do PHPDF utilizado no telegram
GNU General Public License v3.0
29 stars 9 forks source link

Object of class App\Enums\GroupTypes could not be converted to int #97

Open celorodovalho opened 4 years ago

celorodovalho commented 4 years ago

Message:

Object of class App\Enums\GroupTypes could not be converted to int

File/Line:

/home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Notifications/SendOpportunity.php::60

Code:

0

Trace:

#0 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Notifications/SendOpportunity.php(60): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Object of class...', '/home/marce769/...', 60, Array)
#1 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(95): App\Notifications\SendOpportunity->via(Object(App\Models\Group))
#2 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(77): Illuminate\Notifications\NotificationSender->sendNow(Object(Illuminate\Database\Eloquent\Collection), Object(App\Notifications\SendOpportunity))
#3 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Notifications/ChannelManager.php(39): Illuminate\Notifications\NotificationSender->send(Object(Illuminate\Database\Eloquent\Collection), Object(App\Notifications\SendOpportunity))
#4 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Traits/RoutesNotifications.php(25): Illuminate\Notifications\ChannelManager->send(Object(App\Models\Group), Object(App\Notifications\SendOpportunity))
#5 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Console/Commands/BotPopulateChannel.php(279): App\Models\Group->notify(Object(App\Notifications\SendOpportunity))
#6 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Console/Commands/BotPopulateChannel.php(288): App\Console\Commands\BotPopulateChannel->sendOpportunityToApproval(Object(App\Models\Opportunity))
#7 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Console/Commands/BotPopulateChannel.php(105): App\Console\Commands\BotPopulateChannel->sendTelegramOpportunityToApproval(6127)
#8 [internal function]: App\Console\Commands\BotPopulateChannel->handle()
#9 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array, Array)
#10 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#11 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#12 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Container/Container.php(576): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#13 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Console/Command.php(183): Illuminate\Container\Container->call(Array)
#14 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/symfony/console/Command/Command.php(255): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArrayInput), Object(Illuminate\Console\OutputStyle))
#15 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Console/Command.php(170): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(Illuminate\Console\OutputStyle))
#16 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/symfony/console/Application.php(1011): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\BufferedOutput))
#17 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/symfony/console/Application.php(272): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\BotPopulateChannel), Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\BufferedOutput))
#18 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\BufferedOutput))
#19 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Console/Application.php(90): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\BufferedOutput))
#20 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Console/Application.php(182): Illuminate\Console\Application->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\BufferedOutput))
#21 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(275): Illuminate\Console\Application->call('bot:populate:ch...', Array, NULL)
#22 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(239): Illuminate\Foundation\Console\Kernel->call('bot:populate:ch...', Array)
#23 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Services/CommandsHandler.php(277): Illuminate\Support\Facades\Facade::__callStatic('call', Array)
#24 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Services/CommandsHandler.php(247): App\Services\CommandsHandler->sendOpportunityToApproval(Object(App\Models\Opportunity))
#25 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Services/CommandsHandler.php(93): App\Services\CommandsHandler->processMessage(Object(Telegram\Bot\Objects\Message))
#26 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Http/Controllers/Bot/DefaultController.php(100): App\Services\CommandsHandler->processUpdate(Object(Telegram\Bot\Objects\Update))
#27 [internal function]: App\Http\Controllers\Bot\DefaultController->webhook('545873070:AAGgn...', 'phpdfbot')
#28 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)
#29 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('webhook', Array)
#30 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Route.php(219): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\Bot\DefaultController), 'webhook')
#31 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Route.php(176): Illuminate\Routing\Route->runController()
#32 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Router.php(680): Illuminate\Routing\Route->run()
#33 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#34 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#35 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#36 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#37 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(75): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#38 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#39 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#40 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#41 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#42 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#43 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(56): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#44 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Session\Middleware\StartSession->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#45 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#46 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#47 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#48 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#49 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#50 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#51 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#52 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#53 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Router.php(682): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#54 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Router.php(657): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Dingo\Api\Http\Request))
#55 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Router.php(623): Illuminate\Routing\Router->runRoute(Object(Dingo\Api\Http\Request), Object(Illuminate\Routing\Route))
#56 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Router.php(612): Illuminate\Routing\Router->dispatchToRoute(Object(Dingo\Api\Http\Request))
#57 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/dingo/api/src/Routing/Adapter/Laravel.php(88): Illuminate\Routing\Router->dispatch(Object(Dingo\Api\Http\Request))
#58 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/dingo/api/src/Routing/Router.php(518): Dingo\Api\Routing\Adapter\Laravel->dispatch(Object(Dingo\Api\Http\Request), 'v1')
#59 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/dingo/api/src/Http/Middleware/Request.php(126): Dingo\Api\Routing\Router->dispatch(Object(Dingo\Api\Http\Request))
#60 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Dingo\Api\Http\Middleware\Request->Dingo\Api\Http\Middleware\{closure}(Object(Dingo\Api\Http\Request))
#61 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Http/Middleware/Cors.php(18): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#62 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): App\Http\Middleware\Cors->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#63 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#64 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Fideloper\Proxy\TrustProxies->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#65 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#66 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#67 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#68 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#69 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#70 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#71 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#72 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#73 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#74 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/dingo/api/src/Http/Middleware/Request.php(127): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#75 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/dingo/api/src/Http/Middleware/Request.php(103): Dingo\Api\Http\Middleware\Request->sendRequestThroughRouter(Object(Dingo\Api\Http\Request))
#76 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Dingo\Api\Http\Middleware\Request->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#77 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#78 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#79 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#80 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#81 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/public/index.php(55): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#82 {main}

Log:

https://dev.marcelorodovalho.com/workspace/phpdfbot/storage/app/logs/1580301754.log
celorodovalho commented 4 years ago

Message:

Object of class App\Enums\GroupTypes could not be converted to int

File/Line:

/home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Notifications/SendOpportunity.php::60

Code:

0

Trace:

#0 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Notifications/SendOpportunity.php(60): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Object of class...', '/home/marce769/...', 60, Array)
#1 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(95): App\Notifications\SendOpportunity->via(Object(App\Models\Group))
#2 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Notifications/NotificationSender.php(77): Illuminate\Notifications\NotificationSender->sendNow(Object(Illuminate\Database\Eloquent\Collection), Object(App\Notifications\SendOpportunity))
#3 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Notifications/ChannelManager.php(39): Illuminate\Notifications\NotificationSender->send(Object(Illuminate\Database\Eloquent\Collection), Object(App\Notifications\SendOpportunity))
#4 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Traits/RoutesNotifications.php(25): Illuminate\Notifications\ChannelManager->send(Object(App\Models\Group), Object(App\Notifications\SendOpportunity))
#5 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Console/Commands/BotPopulateChannel.php(279): App\Models\Group->notify(Object(App\Notifications\SendOpportunity))
#6 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Console/Commands/BotPopulateChannel.php(288): App\Console\Commands\BotPopulateChannel->sendOpportunityToApproval(Object(App\Models\Opportunity))
#7 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Console/Commands/BotPopulateChannel.php(105): App\Console\Commands\BotPopulateChannel->sendTelegramOpportunityToApproval(6128)
#8 [internal function]: App\Console\Commands\BotPopulateChannel->handle()
#9 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array, Array)
#10 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#11 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#12 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Container/Container.php(576): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#13 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Console/Command.php(183): Illuminate\Container\Container->call(Array)
#14 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/symfony/console/Command/Command.php(255): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArrayInput), Object(Illuminate\Console\OutputStyle))
#15 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Console/Command.php(170): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(Illuminate\Console\OutputStyle))
#16 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/symfony/console/Application.php(1011): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\BufferedOutput))
#17 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/symfony/console/Application.php(272): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\BotPopulateChannel), Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\BufferedOutput))
#18 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\BufferedOutput))
#19 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Console/Application.php(90): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\BufferedOutput))
#20 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Console/Application.php(182): Illuminate\Console\Application->run(Object(Symfony\Component\Console\Input\ArrayInput), Object(Symfony\Component\Console\Output\BufferedOutput))
#21 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(275): Illuminate\Console\Application->call('bot:populate:ch...', Array, NULL)
#22 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(239): Illuminate\Foundation\Console\Kernel->call('bot:populate:ch...', Array)
#23 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Services/CommandsHandler.php(277): Illuminate\Support\Facades\Facade::__callStatic('call', Array)
#24 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Services/CommandsHandler.php(247): App\Services\CommandsHandler->sendOpportunityToApproval(Object(App\Models\Opportunity))
#25 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Services/CommandsHandler.php(93): App\Services\CommandsHandler->processMessage(Object(Telegram\Bot\Objects\Message))
#26 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Http/Controllers/Bot/DefaultController.php(100): App\Services\CommandsHandler->processUpdate(Object(Telegram\Bot\Objects\Update))
#27 [internal function]: App\Http\Controllers\Bot\DefaultController->webhook('545873070:AAGgn...', 'phpdfbot')
#28 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)
#29 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('webhook', Array)
#30 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Route.php(219): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\Bot\DefaultController), 'webhook')
#31 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Route.php(176): Illuminate\Routing\Route->runController()
#32 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Router.php(680): Illuminate\Routing\Route->run()
#33 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#34 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#35 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#36 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#37 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(75): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#38 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#39 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#40 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#41 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#42 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#43 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(56): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#44 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Session\Middleware\StartSession->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#45 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#46 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#47 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#48 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#49 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(66): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#50 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#51 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#52 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Dingo\Api\Http\Request))
#53 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Router.php(682): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#54 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Router.php(657): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Dingo\Api\Http\Request))
#55 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Router.php(623): Illuminate\Routing\Router->runRoute(Object(Dingo\Api\Http\Request), Object(Illuminate\Routing\Route))
#56 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Router.php(612): Illuminate\Routing\Router->dispatchToRoute(Object(Dingo\Api\Http\Request))
#57 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/dingo/api/src/Routing/Adapter/Laravel.php(88): Illuminate\Routing\Router->dispatch(Object(Dingo\Api\Http\Request))
#58 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/dingo/api/src/Routing/Router.php(518): Dingo\Api\Routing\Adapter\Laravel->dispatch(Object(Dingo\Api\Http\Request), 'v1')
#59 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/dingo/api/src/Http/Middleware/Request.php(126): Dingo\Api\Routing\Router->dispatch(Object(Dingo\Api\Http\Request))
#60 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Dingo\Api\Http\Middleware\Request->Dingo\Api\Http\Middleware\{closure}(Object(Dingo\Api\Http\Request))
#61 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/app/Http/Middleware/Cors.php(18): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#62 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): App\Http\Middleware\Cors->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#63 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#64 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Fideloper\Proxy\TrustProxies->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#65 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#66 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#67 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#68 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#69 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#70 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#71 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#72 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#73 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Dingo\Api\Http\Request))
#74 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/dingo/api/src/Http/Middleware/Request.php(127): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#75 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/dingo/api/src/Http/Middleware/Request.php(103): Dingo\Api\Http\Middleware\Request->sendRequestThroughRouter(Object(Dingo\Api\Http\Request))
#76 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(163): Dingo\Api\Http\Middleware\Request->handle(Object(Dingo\Api\Http\Request), Object(Closure))
#77 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#78 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#79 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#80 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#81 /home/marce769/public_html/projects/marcelorodovalho.com.br/dsv/workspace/phpdfbot/public/index.php(55): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#82 {main}

Log:

https://dev.marcelorodovalho.com/workspace/phpdfbot/storage/app/logs/1580301814.log