The User Model

In the LaraBooking System we have only one table to all the users types: providers, secretaries, clients and admins.

Each of these user types has your own controller, for example, ProviderController, SecretaryController, etc. But all the users are manipulated by one repository, the UserRepository.php, and one model User.php.

To simplify the users manipulation the UserRepository.php contains some methods like:

public function searchAllUsers($search)

public function searchSecretaries($search)

public function saveClient($data)

You can explore the UserRepository.php to see all the methods that you can use to manipulate users.