skip to Main Content

Redis – SQLSTATE[42S22]: Column not found in Laravel

Hello Following is my query, but I get error while run it: $out_let_product = OutLet::where('id', Redis::get('out_let_id') )->with( ['products' => function($query){ $query->with(['prices', 'combinations' => function($query){ $query->where('prices.active', '=', '1'); }]); }])->get(); In above code 'prices' and 'combinations' = function in product model.…

VIEW QUESTION

Use Laravel 7 HTTP client and OAuth Subscriber – Twitter API

I'm actually using Guzzle and Guzzle OAuth Subscriber https://github.com/guzzle/oauth-subscriber to post a tweet via the Twitter api. My code looks like this : $stack = HandlerStack::create(); $middleware = new Oauth1([ 'consumer_key' => config('services.twitter.client_id'), 'consumer_secret' => config('services.twitter.client_secret'), 'token' => $this->user->twitter->token, 'token_secret'…

VIEW QUESTION
Back To Top
Search