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...
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Lyr0FT
via IFTTT
Aucun commentaire:
Enregistrer un commentaire