- Setup a fresh Laravel 8 application.
- Use Tailwind CSS as the CSS framework.
- CDN version is fine.
- Bonus points if installed via NPM.
- Create a new contact page at
/contact
. - Create a contact form on the page.
- The form should be built as a Vue component.
- The form should submit via ajax.
- The form should have the following fields:
- Name
- Phone
- Message
- Implement proper server-side form validation, and display those errors client-side.
- All fields are required.
- Name and Email have a max length of 50 characters.
- Email must be a valid email.
- Message has a max length of 500 characters.
- On a successful form submission:
- Save the form data to the database in an
inquiries
table. - Send an email notification to [email protected]. An actual email is not required. Feel free to use mailtrap.io or other to test.
- Save the form data to the database in an
- Write a basic HTTP test to verifying:
- The form validation works.
- That the value is being saved to the database.
- That the email notification was sent.
- Provide the final codebase as a Git repository.
Forked from reinink/Laravel Developer - Interview Exercise.md
Last active
February 7, 2021 06:14
-
-
Save zhakkapong/3889034c1798046ad4d2e93b7561412d to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment