lundi 17 décembre 2018

LARAVEL: How can i get the next result

I need get if $proyects is empty

$proyects = Proyect::where( 'company_id', $company->id )->get();

if ($proyects == null) {
    echo "empty";
} else {
    dd($proyects);
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire