Category : rdbms

In laravel tutorial it’s said that we can pass an array of conditions in where function. My question is when I pass an array of conditions previously made by me it doesn’t work. Here is the code in documentation: $users = DB::table(‘users’)->where([ [‘status’, ‘=’, ‘1’], [‘subscribed’, ‘<>’, ‘1’], ])->get(); My code is: $fields = collect($request->input()); ..

Read more