Thursday, February 22, 2018

Using whereInStrict() in laravel 5.5 - development

Using whereInStrict() in laravel 5.5

I tried using whereIn() in my project but because of its loose comparison it considered a value ‘1gb’ as integer. So as per the documentation I used whereInStrict().

$spec['vals'] = ['1 gb', '2gb', '8gb']; // array created by explod()     
ProductSpecification::whereInStrict('value', $spec['vals'])->get();

But the creates sql query like “Select * from product_specifications where in_strict = ‘value’ “, thus giving an error. What to do? Am I using it wrong?

I’m kinda new to laravel.



from Laravel Questions and Answers https://laravelquestions.com/php/using-whereinstrict-in-laravel-5-5/
via Lzo Media

1 comment:

  1. Lance Developer London: Using Whereinstrict() In Laravel 5.5 - Development >>>>> Download Now

    >>>>> Download Full

    Lance Developer London: Using Whereinstrict() In Laravel 5.5 - Development >>>>> Download LINK

    >>>>> Download Now

    Lance Developer London: Using Whereinstrict() In Laravel 5.5 - Development >>>>> Download Full

    >>>>> Download LINK SE

    ReplyDelete