Welcome to the Laravel Learning Repository! Whether you're new to Laravel or looking to expand your knowledge, this repository is your ultimate guide. With hands-on exercises, clear instructions, and in-depth notes, you'll master Laravel's core concepts and advanced features in no time.
- Installation
- Cloning the Repository
- Folder Structure
- Opening PDF & DOCX Files
- Contributing
- Acknowledgements
Before you begin, ensure that you have the following installed:
-
Clone the repository:
git clone https://github.com/Yabe12/Learning-Laravel.git cd Learning-Laravel
-
Install dependencies using Composer:
composer install
-
Copy the environment file:
cp .env.example .env
-
Generate the application key:
php artisan key:generate
-
Run migrations (optional):
php artisan migrate
-
Serve the application:
php artisan serve
Now, you can access the Laravel application at http://localhost:8000.
To contribute or make changes to this repository, follow these steps:
-
Go to the Laravel Learning Repository on GitHub.
-
Click the Fork button in the top-right corner to create a copy under your GitHub account.
-
After forking, clone the repository to your local machine:
git clone https://github.com/YOUR_USERNAME/Learning-Laravel.git cd Learning-Laravel
This repository is organized into three primary folders to help you navigate through learning resources efficiently:
This folder contains practical exercises to help you apply and reinforce your Laravel knowledge. The exercises cover the following topics:
- Routes: Learn how to define and use routes for various HTTP requests, handle route parameters, and organize routes.
- Controllers: Create controllers to manage HTTP requests, implement business logic, and return responses.
- Database Operations: Practice working with migrations, Eloquent ORM, models, relationships, and performing CRUD operations.
- Request Data & Validation: Handle form data, apply validation rules, and return validation feedback.
- Authentication & Authorization: Implement authentication systems, manage user roles, and control access to resources.
This folder includes detailed instructions to help you get started with Laravel, including:
- Installing Laravel: Step-by-step guide for installing Laravel via Composer and setting up your local development environment.
- Configuring the Environment: Instructions on configuring the
.env
file for setting up database connections and app keys. - Running Migrations & Seeding: Learn how to set up your database with migrations and seed data to get started quickly.
The notes/
folder contains valuable resources for further learning, including:
- Laravel Up & Running (Second Edition) by Matt Stauffer (PDF version).
- Short Notes: A concise version of key takeaways from the book for quick reference.
- Laravel Exercise Module.docx: Detailed exercises and step-by-step guides to help you master Laravel.
To open the PDF and DOCX files:
- PDF: Use any PDF reader of your choice, or install a PDF extension in your IDE (e.g., VSCode-pdf).
- DOCX: Open with any Word processor or use an Office Viewer extension in your IDE for easy viewing.
We welcome contributions to improve this repository! Whether you're adding new learning materials, fixing bugs, or making enhancements, hereβs how you can contribute:
- Fork the repository to create your own copy.
- Clone your fork to your local machine.
- Make your changes and commit them.
- Submit a pull request.
This repository is inspired by the Laravel Up & Running (Second Edition) book by Matt Stauffer and contributions from the Laravel community. A big thank you to everyone who has helped make Laravel a powerful and easy-to-use PHP framework.
Happy Learning! π