i thinking if is it possible to make a function that do somethink like this in Laravel
public function getUsers( $select, $where )
{
return User::where( $where )->get( $select );
}
if $select = "*" and $where =""", it gives all users if $select = "columns" and $where="conditions", this gives the specific columns that meet the conditions. if...
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire