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

$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