The business logic is as follows:
- Fill out the form to publish a card.
- Click on publish card button.
- Publish if only if the user is authenticated.
- If you are not authenticated, request to log in with the option to register.
- If the user is registered or logged in, redirect to the form keeping the fields filled.
This is the logic of what I want to do
Note:
- I currently show the login view if it is not authenticated with the help of laravel's Authentication Middleware.
- The login view has the option to register.
- I do not have much experience in laravel, I would like you could be explicit in your answer.