LabiciIvan / php-api-nutritional-project

A PHP API nutritional project
0 stars 0 forks source link

AuthenticationController::class - to facilitate Authentication #34

Open LabiciIvan opened 1 month ago

LabiciIvan commented 1 month ago

Description:

Create an AuthenticationController::class in the App/Controller/ directory.

It will use as a dependency the Request::class and Authentication::class to facilitate the authentication of users into the application.

AuthenticationController::class should have the following capabilities:

This class will have the following method capabilities:

public function register(Request $request, Authentication $auth):

public function login (Request $request):

public function logout(Request $request):

public function update (Request $request):

public function delete(Request $request):