Coding Test
Coding Test
Note:
The completed project should be submitted by pushing the code to your own GitHub
and provide the link.
Task 4 should have a separate repository and all remaining tasks should be done in a
single separate repository.
Task 1:
Create a custom middleware in Laravel that logs the IP address of incoming requests.
Apply this middleware to a route and demonstrate its functionality.
Task 2:
Write a Laravel route that handles file uploads. Allow users to upload a single file and
save it to a specified directory on the server.
Task 3:
Explain how the Laravel service container works and provide an example of how you
might bind a class to the service container and resolve it using dependency injection.
Task 4: