Laravel framework

TRAINING

2 DAYS | 14 HOURS TRAINING PROGRAMME

ONLINE OR FACE-TO-FACE TRAINING

This 2-day course provides a comprehensive introduction to Laravel, one of the most popular PHP frameworks for web development. Designed for both beginners and those with some PHP experience, the course covers everything from basic Laravel setup to intermediate concepts like database management, authentication, routing, and building APIs. Participants will engage in hands-on exercises to develop practical skills in building modern, robust web applications using Laravel.


OBJECTIVES

By the end of this course, participants will:


WHO SHOULD ATTEND THIS COURSE


METHODOLOGY

The course will primarily focus on delivering concise explanations of LARAVEL framework along with key PHP concepts with practical examples and exercises. Hands-on coding exercises will be provided to reinforce learning and allow participants to apply the concepts covered.


MATERIALS


COURSE OUTLINE

(THIS IS A 2 DAYS TRAINING PROGRAMME)

DAY 1: Introduction to Laravel and Basic Features

Session 1: Introduction to Laravel and Environment Setup

Duration: 9:00 AM – 10:30 AM

What is Laravel? Overview and features.

The MVC (Model-View-Controller) architecture in Laravel.

Installing and setting up a local development environment (Composer, XAMPP/Valet, and Laravel).

Introduction to Laravel’s directory structure and artisan commands.

Objective:

Participants will understand Laravel’s purpose and set up a basic Laravel environment.


Break: 10:30 AM – 10:45 AM


Session 2: Routing and Controllers

Duration: 10:45 AM – 12:30 PM

Understanding Laravel routing: Basic routes, route parameters, named routes.

Creating and using Controllers: Defining logic and interacting with views.

Grouping routes and route middleware.

Hands-on Exercise:

Create basic routes and set up corresponding controllers.

Create dynamic routes with parameters.

Objective:

Participants will learn how to define routes, pass parameters, and manage logic through controllers.


Lunch Break: 12:30 PM – 1:30 PM


Session 3: Blade Templating Engine

Duration: 1:30 PM – 3:00 PM

Introduction to Blade, Laravel's templating engine.

Creating views using Blade.

Blade features: template inheritance, components, loops, and conditionals.

Passing data from controllers to views.

Hands-on Exercise:

Build and render views using Blade, implement dynamic content through controllers.

Objective:

Participants will be able to create and use dynamic views with Blade, leveraging its powerful templating features.


Break: 3:00 PM – 3:15 PM


Session 4: Working with Databases and Migrations

Duration: 3:15 PM – 5:00 PM

Database configuration in Laravel (MySQL or SQLite).

Introduction to Migrations: Creating, modifying, and rolling back database tables.

Understanding database seeds and how to use them for testing data.

Hands-on Exercise:

Create a new database schema using migrations and populate it using seeds.

Objective:

Participants will learn how to set up a database, use migrations for schema management, and seed the database with test data.


DAY 2: Intermediate Laravel Concepts

Session 1: Eloquent ORM and Database Relationships

Duration: 9:00 AM – 10:30 AM

Introduction to Eloquent ORM: Working with models.

Basic CRUD (Create, Read, Update, Delete) operations using Eloquent.

Defining and managing database relationships: One-to-One, One-to-Many, Many-to-Many.

Hands-on Exercise:

Build models and perform CRUD operations.

Define relationships between tables using Eloquent (e.g., users and posts).

Objective:

Participants will learn how to use Eloquent ORM for database interaction and managing relationships.


Break: 10:30 AM – 10:45 AM


Session 2: Form Handling, Validation, and File Uploads

Duration: 10:45 AM – 12:30 PM

Handling forms in Laravel: Creating and processing forms.

Form validation: Built-in validation methods, custom error messages, and form request classes.

File uploads: Handling and validating file uploads, storing files in the filesystem.

Hands-on Exercise:

Create forms for user input with validation.

Implement file upload functionality and validate file types and sizes.

Objective:

Participants will learn how to create forms, validate user input, and manage file uploads in Laravel.


Lunch Break: 12:30 PM – 1:30 PM


Session 3: Authentication and Authorization

Duration: 1:30 PM – 3:00 PM

Built-in Authentication in Laravel: User registration, login, and password reset.

Authorization: Managing roles and permissions using gates and policies.

Protecting routes using middleware.

Hands-on Exercise:

Set up a user authentication system and implement role-based access control.

Objective:

Participants will implement user authentication and authorization in their Laravel applications, protecting routes and user roles.


Break: 3:00 PM – 3:15 PM


Session 4: RESTful APIs with Laravel

Duration: 3:15 PM – 4:30 PM

Introduction to building RESTful APIs in Laravel.

Handling JSON requests and responses.

Creating API routes and controllers.

API authentication using Laravel Passport or Laravel Sanctum.

Hands-on Exercise:

Build a simple RESTful API with endpoints for retrieving and managing data.

Implement basic API authentication.

Objective:

Participants will learn how to create a RESTful API in Laravel and secure it with authentication.


Q&A and Wrap-Up

Duration: 4:30 PM – 5:00 PM


Open Q&A session.

Recap of key takeaways from both days.

Final tips and best practices for Laravel development.



 FOR PRICING AND BOOKING THIS COURSE, PLEASE E-MAIL US AT janice@marcnzed.com 

OR CALL +6012 451 4977 (MALAYSIA) OR  +65 9052 3859 (SINGAPORE)


Certificate

Upon successful completion of the course, participants will be awarded a verified digital certificate by Marc & Zed Training Singapore in collaboration with Marc & Zed SPACES Malaysia