Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Welcome to the Simple Web App for User and Task Management! This application allows an admin to create users, assign tasks, and export data to Excel. Built using Laravel, this app is designed to simplify user and task management with an intuitive interface.
- User Management: Create and manage users with ease.
- Task Assignment: Assign tasks to users and track their status.
- Data Export: Export user and task data to Excel for easy sharing and reporting.
- Pagination: Efficiently navigate through lists of users and tasks.
- Validation: Ensure data integrity with email format validation using jQuery and PHP.
- PHP (Laravel)
- jQuery for client-side validation
- MySQL for database management
- PHPExcel for Excel export functionality
- Clone the repository:
git clone https://github.com/yourusername/simple-web-app.git
Navigate to the project directory: cd simple-web-app
Install dependencies (if using Laravel): composer install
Set up the database:
Create a MySQL database. Import the provided SQL file to set up tables and initial data.
Configure the environment:
Rename .env.example to .env. Update the database credentials in the .env file.
Run the application:
For Laravel: php artisan serve
For other frameworks, configure your web server to point to the public directory.
Usage User Management
Add Users: Navigate to the "Add User" form, fill in the user's name, email, and mobile number, and submit the form to create a new user. View Users: Access the user list to view all added users and use pagination to navigate through the list.
Task Management
Add Tasks: Go to the "Add Task" form, select a user from the dropdown, enter task details, and select the task status (Pending/Done) before submitting the form. View Tasks: Visit the task list page to see all tasks with user assignments and use pagination to browse through tasks.
Export Data
Click the "Export to Excel" button to download user and task data. The Excel file will contain two sheets: "User" and "Task".
Screenshots
Figure 3: User List with Pagination
Figure 4: Task List with User Assignments Contributing
In Laravel, you can use the Artisan command-line tool to create various components of your application, such as models, controllers, views, migrations, and more. Here are some important Artisan commands to create files in a Laravel application:
- Create a Model php artisan make:model ModelName
- Create a Controller php artisan make:controller ControllerName
- Create a Migration php artisan make:migration create_table_name
- Create a Request php artisan make:request RequestName
- Create a Seeder php artisan make:seeder SeederName
- Create a Factory php artisan make:factory FactoryName
- Create a Middleware php artisan make:middleware MiddlewareName
- Create a Policy php artisan make:policy PolicyName
- Create a Command php artisan make:command CommandName
- Create a View While there is no specific Artisan command to create a view file, you can manually create a view file in the resources/views directory. For example: touch resources/views/viewName.blade.php
Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.
License This project is licensed under the MIT License. See the LICENSE file for details.
Thank you for using our Simple Web App for User and Task Management. We hope it meets your needs effectively! If you have any questions or feedback, feel free to reach out.
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.