Whoops, looks like something went wrong.

(1/1) ErrorException

file_put_contents(/home/hotsalege/domains/hotsale.ge/laravel/storage/logs/queries.log): failed to open stream: Permission denied

in helpers.php line 803
at HandleExceptions->handleError(2, 'file_put_contents(/home/hotsalege/domains/hotsale.ge/laravel/storage/logs/queries.log): failed to open stream: Permission denied', '/home/hotsalege/domains/hotsale.ge/laravel/app/Support/helpers.php', 803, array('query' => object(QueryExecuted), 'filename' => '/home/hotsalege/domains/hotsale.ge/laravel/storage/logs/queries.log', 'separator' => '--------------------------------------------------------', 'conn' => 'Connection: mysql', 'sql' => 'SQL: select count(*) as aggregate from `offers` left join `offer_languages` on `offers`.`id` = `offer_languages`.`offer_id` and `offer_languages`.`language` = ? left join `companies` on `offers`.`company_id` = `companies`.`id` left join `company_languages` on (`companies`.`id` = `company_languages`.`company_id` and `company_languages`.`language` = ?) left join `offer_positions` on `offer_positions`.`offer_id` = `offers`.`id` and `offer_positions`.`category_id` is null where `offers`.`visible` = ? and `offers`.`is_corporate` = ? and (publish_date < str_to_date(now(), \'%Y-%m-%d %H:%i:%s\') and (`end_date` is null or end_date > str_to_date(now(), \'%Y-%m-%d %H:%i:%s\')) and `coming_soon` = ?) and `offers`.`is_menu` = ? and `companies`.`visible` = ? and exists (select * from `offer_categories` where `offers`.`id` = `offer_categories`.`offer_id` and `offer_categories`.`category_id` not in (?, ?))', 'bindings' => 'Bindings: ka, ka, 1, 0, 0, 0, 1, 413, 473', 'time' => 'Time: 51.46', 'data' => 'Connection: mysqlSQL: select count(*) as aggregate from `offers` left join `offer_languages` on `offers`.`id` = `offer_languages`.`offer_id` and `offer_languages`.`language` = ? left join `companies` on `offers`.`company_id` = `companies`.`id` left join `company_languages` on (`companies`.`id` = `company_languages`.`company_id` and `company_languages`.`language` = ?) left join `offer_positions` on `offer_positions`.`offer_id` = `offers`.`id` and `offer_positions`.`category_id` is null where `offers`.`visible` = ? and `offers`.`is_corporate` = ? and (publish_date < str_to_date(now(), \'%Y-%m-%d %H:%i:%s\') and (`end_date` is null or end_date > str_to_date(now(), \'%Y-%m-%d %H:%i:%s\')) and `coming_soon` = ?) and `offers`.`is_menu` = ? and `companies`.`visible` = ? and exists (select * from `offer_categories` where `offers`.`id` = `offer_categories`.`offer_id` and `offer_categories`.`category_id` not in (?, ?))Bindings: ka, ka, 1, 0, 0, 0, 1, 413, 473Time: 51.46--------------------------------------------------------', 'flags' => 10))
at file_put_contents('/home/hotsalege/domains/hotsale.ge/laravel/storage/logs/queries.log', 'Connection: mysqlSQL: select count(*) as aggregate from `offers` left join `offer_languages` on `offers`.`id` = `offer_languages`.`offer_id` and `offer_languages`.`language` = ? left join `companies` on `offers`.`company_id` = `companies`.`id` left join `company_languages` on (`companies`.`id` = `company_languages`.`company_id` and `company_languages`.`language` = ?) left join `offer_positions` on `offer_positions`.`offer_id` = `offers`.`id` and `offer_positions`.`category_id` is null where `offers`.`visible` = ? and `offers`.`is_corporate` = ? and (publish_date < str_to_date(now(), \'%Y-%m-%d %H:%i:%s\') and (`end_date` is null or end_date > str_to_date(now(), \'%Y-%m-%d %H:%i:%s\')) and `coming_soon` = ?) and `offers`.`is_menu` = ? and `companies`.`visible` = ? and exists (select * from `offer_categories` where `offers`.`id` = `offer_categories`.`offer_id` and `offer_categories`.`category_id` not in (?, ?))Bindings: ka, ka, 1, 0, 0, 0, 1, 413, 473Time: 51.46--------------------------------------------------------', 10)in helpers.php line 803
at {closure}(object(QueryExecuted))in Dispatcher.php line 348
at Dispatcher->Illuminate\Events\{closure}('Illuminate\\Database\\Events\\QueryExecuted', array(object(QueryExecuted)))in Dispatcher.php line 199
at Dispatcher->dispatch('Illuminate\\Database\\Events\\QueryExecuted')in Connection.php line 808
at Connection->event(object(QueryExecuted))in Connection.php line 665
at Connection->logQuery('select count(*) as aggregate from `offers` left join `offer_languages` on `offers`.`id` = `offer_languages`.`offer_id` and `offer_languages`.`language` = ? left join `companies` on `offers`.`company_id` = `companies`.`id` left join `company_languages` on (`companies`.`id` = `company_languages`.`company_id` and `company_languages`.`language` = ?) left join `offer_positions` on `offer_positions`.`offer_id` = `offers`.`id` and `offer_positions`.`category_id` is null where `offers`.`visible` = ? and `offers`.`is_corporate` = ? and (publish_date < str_to_date(now(), \'%Y-%m-%d %H:%i:%s\') and (`end_date` is null or end_date > str_to_date(now(), \'%Y-%m-%d %H:%i:%s\')) and `coming_soon` = ?) and `offers`.`is_menu` = ? and `companies`.`visible` = ? and exists (select * from `offer_categories` where `offers`.`id` = `offer_categories`.`offer_id` and `offer_categories`.`category_id` not in (?, ?))', array('ka', 'ka', 1, 0, 0, 0, 1, 413, 473), 51.46)in Connection.php line 618
at Connection->run('select count(*) as aggregate from `offers` left join `offer_languages` on `offers`.`id` = `offer_languages`.`offer_id` and `offer_languages`.`language` = ? left join `companies` on `offers`.`company_id` = `companies`.`id` left join `company_languages` on (`companies`.`id` = `company_languages`.`company_id` and `company_languages`.`language` = ?) left join `offer_positions` on `offer_positions`.`offer_id` = `offers`.`id` and `offer_positions`.`category_id` is null where `offers`.`visible` = ? and `offers`.`is_corporate` = ? and (publish_date < str_to_date(now(), \'%Y-%m-%d %H:%i:%s\') and (`end_date` is null or end_date > str_to_date(now(), \'%Y-%m-%d %H:%i:%s\')) and `coming_soon` = ?) and `offers`.`is_menu` = ? and `companies`.`visible` = ? and exists (select * from `offer_categories` where `offers`.`id` = `offer_categories`.`offer_id` and `offer_categories`.`category_id` not in (?, ?))', array('ka', 'ka', 1, 0, 0, 0, 1, 413, 473), object(Closure))in Connection.php line 326
at Connection->select('select count(*) as aggregate from `offers` left join `offer_languages` on `offers`.`id` = `offer_languages`.`offer_id` and `offer_languages`.`language` = ? left join `companies` on `offers`.`company_id` = `companies`.`id` left join `company_languages` on (`companies`.`id` = `company_languages`.`company_id` and `company_languages`.`language` = ?) left join `offer_positions` on `offer_positions`.`offer_id` = `offers`.`id` and `offer_positions`.`category_id` is null where `offers`.`visible` = ? and `offers`.`is_corporate` = ? and (publish_date < str_to_date(now(), \'%Y-%m-%d %H:%i:%s\') and (`end_date` is null or end_date > str_to_date(now(), \'%Y-%m-%d %H:%i:%s\')) and `coming_soon` = ?) and `offers`.`is_menu` = ? and `companies`.`visible` = ? and exists (select * from `offer_categories` where `offers`.`id` = `offer_categories`.`offer_id` and `offer_categories`.`category_id` not in (?, ?))', array('ka', 'ka', 1, 0, 0, 0, 1, 413, 473), true)in Builder.php line 1705
at Builder->runSelect()in Builder.php line 1690
at Builder->get()in Builder.php line 1790
at Builder->runPaginationCountQuery(array('*'))in Builder.php line 1763
at Builder->getCountForPagination()in Builder.php line 689
at Builder->paginate(12, array('*'), 'page', 1)in Builder.php line 125
at Builder->paginate(12, array('*'))in Model.php line 1374
at Model->__call('paginate', array(12, array('*')))in SettingsFileTrait.php line 112
at Offer->paginatePublicSettings(array('*'), 12)
at call_user_func_array(array(object(Offer), 'paginatePublicSettings'), array(array('*'), 12))in Builder.php line 357
at Builder->__call('paginatePublicSettings', array(array('*'), 12))in Offer.php line 1039
at Offer->getPublicSettings()
at call_user_func_array(array(object(Offer), 'getPublicSettings'), array())in Builder.php line 357
at Builder->__call('getPublicSettings', array())in WebHomeController.php line 250
at WebHomeController->App\Http\Controllers\Web\Updated\{closure}(object(Builder), null)in BuildsQueries.php line 91
at Builder->when(null, null, object(Closure))in WebHomeController.php line 251
at WebHomeController->getOffers(object(Request), null, array(3, 1, 6, 9, 2))in WebHomeController.php line 49
at WebHomeController->index(object(Request))
at call_user_func_array(array(object(WebHomeController), 'index'), array(object(Request)))in Controller.php line 55
at Controller->callAction('index', array(object(Request)))in ControllerDispatcher.php line 44
at ControllerDispatcher->dispatch(object(Route), object(WebHomeController), 'index')in Route.php line 203
at Route->runController()in Route.php line 160
at Route->run()in Router.php line 572
at Router->Illuminate\Routing\{closure}(object(Request))in Pipeline.php line 30
at Pipeline->Illuminate\Routing\{closure}(object(Request))in WebMainData.php line 63
at WebMainData->handle(object(Request), object(Closure))in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in SubstituteBindings.php line 41
at SubstituteBindings->handle(object(Request), object(Closure))in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in VerifyCsrfToken.php line 65
at VerifyCsrfToken->handle(object(Request), object(Closure))in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in StartSession.php line 64
at StartSession->handle(object(Request), object(Closure))in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure))in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in Pipeline.php line 102
at Pipeline->then(object(Closure))in Router.php line 574
at Router->runRouteWithinStack(object(Route), object(Request))in Router.php line 533
at Router->dispatchToRoute(object(Request))in Router.php line 511
at Router->dispatch(object(Request))in Kernel.php line 176
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request))in Pipeline.php line 30
at Pipeline->Illuminate\Routing\{closure}(object(Request))in TransformsRequest.php line 30
at TransformsRequest->handle(object(Request), object(Closure))in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in TransformsRequest.php line 30
at TransformsRequest->handle(object(Request), object(Closure))in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in ValidatePostSize.php line 27
at ValidatePostSize->handle(object(Request), object(Closure))in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in CheckForMaintenanceMode.php line 46
at CheckForMaintenanceMode->handle(object(Request), object(Closure))in Pipeline.php line 148
at Pipeline->Illuminate\Pipeline\{closure}(object(Request))in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request))in Pipeline.php line 102
at Pipeline->then(object(Closure))in Kernel.php line 151
at Kernel->sendRequestThroughRouter(object(Request))in Kernel.php line 116
at Kernel->handle(object(Request))in index.php line 58