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 `offer_languages`.*, `offer_languages`.`id` as `offer_language_id`, `offers`.*, `companies`.`id` as `company_id`, `companies`.`slug` as `company_slug`, `companies`.`logo` as `company_logo`, `companies`.`district` as `district`, `companies`.`ident_code`, `company_languages`.`title` as `company_title`, `company_languages`.`legal_name` as `company_legal_name`, (select `voucher_price` from `offer_vouchers` where `offers`.`id` = `offer_vouchers`.`offer_id` order by `voucher_price` asc limit 1) as `voucher_price`, (select round(old_price - (offers.price + if(is_voucher, ifnull(voucher_price, 0), 0)), 2) + \'0\') as `savings_price`, (select round((old_price - offers.price) / old_price * 100)) as `savings_perc`, (select ifnull(sum(if(offer_order_items.offer_order_status_id = 2, -offer_order_items.quantity, offer_order_items.quantity)), 0) from `offer_order_items` where `offer_order_items`.`offer_id` = `offers`.`id`) as `orders_count`, `category_id` from `offers` left join `offer_languages` on `offers`.`id` = `offer_languages`.`offer_id` and `offer_languages`.`language` = ? left join `offer_categories` on `offers`.`id` = `offer_categories`.`offer_id` left join `companies` on `offers`.`company_id` = `companies`.`id` left join `company_languages` on (`companies`.`id` = `company_languages`.`company_id` and `company_languages`.`language` = ?) where `offers`.`visible` = ? and `offers`.`is_corporate` = ? and `offer_categories`.`category_id` = ? and `companies`.`visible` = ? 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` = ?) order by `orders_count` desc limit 4', 'bindings' => 'Bindings: ka, ka, 1, 0, 4, 1, 0', 'time' => 'Time: 50.27', 'data' => 'Connection: mysqlSQL: select `offer_languages`.*, `offer_languages`.`id` as `offer_language_id`, `offers`.*, `companies`.`id` as `company_id`, `companies`.`slug` as `company_slug`, `companies`.`logo` as `company_logo`, `companies`.`district` as `district`, `companies`.`ident_code`, `company_languages`.`title` as `company_title`, `company_languages`.`legal_name` as `company_legal_name`, (select `voucher_price` from `offer_vouchers` where `offers`.`id` = `offer_vouchers`.`offer_id` order by `voucher_price` asc limit 1) as `voucher_price`, (select round(old_price - (offers.price + if(is_voucher, ifnull(voucher_price, 0), 0)), 2) + \'0\') as `savings_price`, (select round((old_price - offers.price) / old_price * 100)) as `savings_perc`, (select ifnull(sum(if(offer_order_items.offer_order_status_id = 2, -offer_order_items.quantity, offer_order_items.quantity)), 0) from `offer_order_items` where `offer_order_items`.`offer_id` = `offers`.`id`) as `orders_count`, `category_id` from `offers` left join `offer_languages` on `offers`.`id` = `offer_languages`.`offer_id` and `offer_languages`.`language` = ? left join `offer_categories` on `offers`.`id` = `offer_categories`.`offer_id` left join `companies` on `offers`.`company_id` = `companies`.`id` left join `company_languages` on (`companies`.`id` = `company_languages`.`company_id` and `company_languages`.`language` = ?) where `offers`.`visible` = ? and `offers`.`is_corporate` = ? and `offer_categories`.`category_id` = ? and `companies`.`visible` = ? 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` = ?) order by `orders_count` desc limit 4Bindings: ka, ka, 1, 0, 4, 1, 0Time: 50.27--------------------------------------------------------', 'flags' => 10))
at file_put_contents('/home/hotsalege/domains/hotsale.ge/laravel/storage/logs/queries.log', 'Connection: mysqlSQL: select `offer_languages`.*, `offer_languages`.`id` as `offer_language_id`, `offers`.*, `companies`.`id` as `company_id`, `companies`.`slug` as `company_slug`, `companies`.`logo` as `company_logo`, `companies`.`district` as `district`, `companies`.`ident_code`, `company_languages`.`title` as `company_title`, `company_languages`.`legal_name` as `company_legal_name`, (select `voucher_price` from `offer_vouchers` where `offers`.`id` = `offer_vouchers`.`offer_id` order by `voucher_price` asc limit 1) as `voucher_price`, (select round(old_price - (offers.price + if(is_voucher, ifnull(voucher_price, 0), 0)), 2) + \'0\') as `savings_price`, (select round((old_price - offers.price) / old_price * 100)) as `savings_perc`, (select ifnull(sum(if(offer_order_items.offer_order_status_id = 2, -offer_order_items.quantity, offer_order_items.quantity)), 0) from `offer_order_items` where `offer_order_items`.`offer_id` = `offers`.`id`) as `orders_count`, `category_id` from `offers` left join `offer_languages` on `offers`.`id` = `offer_languages`.`offer_id` and `offer_languages`.`language` = ? left join `offer_categories` on `offers`.`id` = `offer_categories`.`offer_id` left join `companies` on `offers`.`company_id` = `companies`.`id` left join `company_languages` on (`companies`.`id` = `company_languages`.`company_id` and `company_languages`.`language` = ?) where `offers`.`visible` = ? and `offers`.`is_corporate` = ? and `offer_categories`.`category_id` = ? and `companies`.`visible` = ? 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` = ?) order by `orders_count` desc limit 4Bindings: ka, ka, 1, 0, 4, 1, 0Time: 50.27--------------------------------------------------------', 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 `offer_languages`.*, `offer_languages`.`id` as `offer_language_id`, `offers`.*, `companies`.`id` as `company_id`, `companies`.`slug` as `company_slug`, `companies`.`logo` as `company_logo`, `companies`.`district` as `district`, `companies`.`ident_code`, `company_languages`.`title` as `company_title`, `company_languages`.`legal_name` as `company_legal_name`, (select `voucher_price` from `offer_vouchers` where `offers`.`id` = `offer_vouchers`.`offer_id` order by `voucher_price` asc limit 1) as `voucher_price`, (select round(old_price - (offers.price + if(is_voucher, ifnull(voucher_price, 0), 0)), 2) + \'0\') as `savings_price`, (select round((old_price - offers.price) / old_price * 100)) as `savings_perc`, (select ifnull(sum(if(offer_order_items.offer_order_status_id = 2, -offer_order_items.quantity, offer_order_items.quantity)), 0) from `offer_order_items` where `offer_order_items`.`offer_id` = `offers`.`id`) as `orders_count`, `category_id` from `offers` left join `offer_languages` on `offers`.`id` = `offer_languages`.`offer_id` and `offer_languages`.`language` = ? left join `offer_categories` on `offers`.`id` = `offer_categories`.`offer_id` left join `companies` on `offers`.`company_id` = `companies`.`id` left join `company_languages` on (`companies`.`id` = `company_languages`.`company_id` and `company_languages`.`language` = ?) where `offers`.`visible` = ? and `offers`.`is_corporate` = ? and `offer_categories`.`category_id` = ? and `companies`.`visible` = ? 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` = ?) order by `orders_count` desc limit 4', array('ka', 'ka', 1, 0, 4, 1, 0), 50.27)in Connection.php line 618
at Connection->run('select `offer_languages`.*, `offer_languages`.`id` as `offer_language_id`, `offers`.*, `companies`.`id` as `company_id`, `companies`.`slug` as `company_slug`, `companies`.`logo` as `company_logo`, `companies`.`district` as `district`, `companies`.`ident_code`, `company_languages`.`title` as `company_title`, `company_languages`.`legal_name` as `company_legal_name`, (select `voucher_price` from `offer_vouchers` where `offers`.`id` = `offer_vouchers`.`offer_id` order by `voucher_price` asc limit 1) as `voucher_price`, (select round(old_price - (offers.price + if(is_voucher, ifnull(voucher_price, 0), 0)), 2) + \'0\') as `savings_price`, (select round((old_price - offers.price) / old_price * 100)) as `savings_perc`, (select ifnull(sum(if(offer_order_items.offer_order_status_id = 2, -offer_order_items.quantity, offer_order_items.quantity)), 0) from `offer_order_items` where `offer_order_items`.`offer_id` = `offers`.`id`) as `orders_count`, `category_id` from `offers` left join `offer_languages` on `offers`.`id` = `offer_languages`.`offer_id` and `offer_languages`.`language` = ? left join `offer_categories` on `offers`.`id` = `offer_categories`.`offer_id` left join `companies` on `offers`.`company_id` = `companies`.`id` left join `company_languages` on (`companies`.`id` = `company_languages`.`company_id` and `company_languages`.`language` = ?) where `offers`.`visible` = ? and `offers`.`is_corporate` = ? and `offer_categories`.`category_id` = ? and `companies`.`visible` = ? 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` = ?) order by `orders_count` desc limit 4', array('ka', 'ka', 1, 0, 4, 1, 0), object(Closure))in Connection.php line 326
at Connection->select('select `offer_languages`.*, `offer_languages`.`id` as `offer_language_id`, `offers`.*, `companies`.`id` as `company_id`, `companies`.`slug` as `company_slug`, `companies`.`logo` as `company_logo`, `companies`.`district` as `district`, `companies`.`ident_code`, `company_languages`.`title` as `company_title`, `company_languages`.`legal_name` as `company_legal_name`, (select `voucher_price` from `offer_vouchers` where `offers`.`id` = `offer_vouchers`.`offer_id` order by `voucher_price` asc limit 1) as `voucher_price`, (select round(old_price - (offers.price + if(is_voucher, ifnull(voucher_price, 0), 0)), 2) + \'0\') as `savings_price`, (select round((old_price - offers.price) / old_price * 100)) as `savings_perc`, (select ifnull(sum(if(offer_order_items.offer_order_status_id = 2, -offer_order_items.quantity, offer_order_items.quantity)), 0) from `offer_order_items` where `offer_order_items`.`offer_id` = `offers`.`id`) as `orders_count`, `category_id` from `offers` left join `offer_languages` on `offers`.`id` = `offer_languages`.`offer_id` and `offer_languages`.`language` = ? left join `offer_categories` on `offers`.`id` = `offer_categories`.`offer_id` left join `companies` on `offers`.`company_id` = `companies`.`id` left join `company_languages` on (`companies`.`id` = `company_languages`.`company_id` and `company_languages`.`language` = ?) where `offers`.`visible` = ? and `offers`.`is_corporate` = ? and `offer_categories`.`category_id` = ? and `companies`.`visible` = ? 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` = ?) order by `orders_count` desc limit 4', array('ka', 'ka', 1, 0, 4, 1, 0), true)in Builder.php line 1705
at Builder->runSelect()in Builder.php line 1690
at Builder->get(array('*'))in Builder.php line 462
at Builder->getModels(array('*'))in Builder.php line 446
at Builder->get(array('*'))in Builder.php line 183
at Builder->get()in Offer.php line 1155
at Offer->getPopularOffers(4)in WebMainData.php line 119
at WebMainData->sharePopularOfffers(4)in WebMainData.php line 102
at WebMainData->sharePages()in WebMainData.php line 49
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