i am New in laravel and when i try to run this query it gives no result while all result are in database
Here is the snapshot of error
Code
$campaign = Campaigns::select( 'id','startdate', 'enddate' )->where( [
[ 'minage', '<', $age ],
[ 'maxage', '>', $age ]
] )->orWhere( function ( $query ) use ( $age ) {
$query->where( [
[ 'minage', '<', $age ],
[ 'maxage', '>', $age ],
] );
} )->orderBy( 'first', 'DESC' )->get();
Please Don't do negitive rating If you want please suggested updation in My Question
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire