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.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
You may also try the Laravel Bootcamp, where you will be guided through building a modern Laravel application from scratch.
If you don't feel like reading, Laracasts can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Partners program.
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via https://raw.githubusercontent.com/Devraq/logbook_rtt/main/app/Http/Controllers/rtt-logbook-v2.6.zip. All security vulnerabilities will be promptly addressed.
The Laravel framework is open-sourced software licensed under the MIT license.
A simple application for logging job activities and weights. This README provides instructions for local installation and collaboration.
Follow these steps to get the project running on your local machine.
-
Clone the Repository
git clone [https://raw.githubusercontent.com/Devraq/logbook_rtt/main/app/Http/Controllers/rtt-logbook-v2.6.zip](https://raw.githubusercontent.com/Devraq/logbook_rtt/main/app/Http/Controllers/rtt-logbook-v2.6.zip) cd logbook-app -
Install Dependencies Ensure you have Composer installed.
composer install
-
Environment Setup Copy the
https://raw.githubusercontent.com/Devraq/logbook_rtt/main/app/Http/Controllers/rtt-logbook-v2.6.zipfile to.envand configure your database credentials.cp https://raw.githubusercontent.com/Devraq/logbook_rtt/main/app/Http/Controllers/rtt-logbook-v2.6.zip .env
Then, open
.envand setDB_DATABASE,DB_USERNAME, andDB_PASSWORD. -
Generate Application Key
php artisan key:generate
-
Run Database Migrations & Seeding This will create the necessary tables and populate them with initial data.
php artisan migrate --seed
-
Start the Development Server
php artisan serve
The application will be available at
http://127.0.0.1:8000.
To collaborate in real-time:
To Host a Session:
- Open the project in VS Code.
- Click the "Live Share" icon in the activity bar on the left.
- Click "Start collaboration session".
- An invitation link will be copied to your clipboard. Share this link with your collaborators.
To Join a Session:
- Click the "Live Share" icon in the activity bar.
- Click "Join collaboration session".
- Paste the invitation link you received and press Enter.
-
Given I am an admin on the
/logbook/adminpage, When I change a job's weight and click "Submit", Then aPATCHrequest is sent to/api/activities/{id}and a success message is shown. -
Given an API request is sent with invalid data (e.g., negative weight), When the
/api/activities/{id}endpoint is hit, Then the server should respond with a422 Unprocessable Entitystatus and error details. -
Given I am a developer, When I run
php artisan test, Then all unit and feature tests should pass successfully.
- "First, let's look at the admin panel." (Show
https://raw.githubusercontent.com/Devraq/logbook_rtt/main/app/Http/Controllers/rtt-logbook-v2.6.zipin the browser). - "As an admin, I can modify the details of this activity. I'll change the weight from 15 to 25." (Change the value in the form).
- "When I click submit, notice the success message appears." (Click submit and point to the green feedback box).
- "This action sent a PATCH request to our API to create a change request. We can see the network call and the JSON payload here in the browser's developer tools." (Show the network tab).
- "To ensure our logic is sound, we've created automated tests. Here's a unit test for our percentage calculator..." (Show
https://raw.githubusercontent.com/Devraq/logbook_rtt/main/app/Http/Controllers/rtt-logbook-v2.6.zipand runphp artisan test --filter PercentCalcTest). - "https://raw.githubusercontent.com/Devraq/logbook_rtt/main/app/Http/Controllers/rtt-logbook-v2.6.zip here is our feature test that simulates the exact API call we just performed." (Show the feature test file and run it).
- "Finally, all documentation, including the API contract and setup instructions, is available in the project's
https://raw.githubusercontent.com/Devraq/logbook_rtt/main/app/Http/Controllers/rtt-logbook-v2.6.zipand/docsfolder for the next team." (Briefly show the documentation files).