mardi 8 mai 2018

can not get property laravel Error

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
enter image description here

Code

$age=24
    $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



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2wkPg92
via IFTTT

Aucun commentaire:

Enregistrer un commentaire