12345678910111213141516171819202122232425262728293031 |
- <?php
-
-
- namespace App\Http\DAL;
-
-
- use App\Http\DAL\Models\User;
-
- class UserDAL
- {
- public static function getAll()
- {
- $user = User::all();
- if (is_null($user))
- return null;
-
- $tab = [];
-
-
- foreach ($user as $q) {
- $tab[] = $q->toBusinessModel();
- }
- return $tab;
- }
-
- }
|