This repository contains two projects: lara-api
and react-font
. The lara-api
project provides an API that returns Laravel validation rules. The react-font
project fetches this API and uses the response data to validate Laravel forms. Additionally, there's a convenient script to start both projects.
Before you get started, ensure you have the following prerequisites:
- Docker installed on your system.
- Git to clone this repository.
-
Clone this repository to your local machine:
git clone https://github.com/hussain-xpeedstudio/app-hr-common-validation-pattern.git cd app-hr-common-validation-pattern
chmod +x run.sh
./run.sh
- The lara-api project serves as an API that returns Laravel validation rules.
- It is built using Laravel.
- The react-font project is a React application that fetches validation rules from the lara-api API.
- It uses the response data to validate Laravel forms on the client side.
- It is built using React.
You can customize both projects to fit your needs. Feel free to modify the validation rules and the React components as required.
This project is licensed under the MIT License. See the LICENSE file for details.