This is a simple lottery game built with Laravel Livewire. The game generates a list of 10 random numbers between 1 and 100 and the user has to choose one of the numbers. If the selected number is equal to the correct number, the user wins the game.
PHP Laravel Livewire HTML CSS
To install this project, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/your-username/lottery-game.git
- Navigate into the project directory:
cd lottery-game
- Install dependencies:
composer install
npm install && npm run dev
- Create a
.env
file by copying the example file:
cp .env.example .env
- Generate a new application key:
php artisan key:generate
- Start the development server:
php artisan serve
- Visit
http://localhost:8000
in your web browser to see the application.
To play the lottery game, simply select one of the numbers displayed on the screen. If the number you chose matches the correct number, you win the game.
If you would like to contribute to this project, please follow these steps:
-
Fork the repository.
-
Create a new branch for your feature:
git checkout -b feature/my-new-feature
- Make your changes and commit them:
git commit -am 'Add some feature'
- Push your changes to your forked repository:
git push origin feature/my-new-feature
- Create a new pull request from your branch to the main branch of the original repository.
This project is licensed under the MIT License. Feel free to use it for any purpose.