Developing WebAPI with PHP and Laravel

20% discount for multiple people from the same company.

Duration: 2 days | Price: € 580.00 VAT excluded

Prerequisites:
  • HTTP

  • Basic knowledge of PHP

Description

By the end of this course, participants will be able to:

  • Install and configure a Laravel application

  • Understand the basic structure of a Laravel application

  • Create routes, controllers, and views

  • Use the Blade templating engine

  • Use Eloquent ORM to interact with databases

  • Implement basic user authentication

  • Use Artisan to manage development tasks

  • Write unit tests for their applications

  • Deploy a Laravel application on a hosting service

Contents

Introduction to Laravel:

  • What is Laravel?

  • Why use Laravel?

  • Installing Laravel

Basic Structure of a Laravel Application:

  • Important files and directories

  • Naming conventions

  • Basic routing

  • Controllers and views

Creating a Simple Laravel Application:

  • Installing Laravel

  • Creating routes and controllers

  • Displaying views

  • Passing data between controllers and views

Blade Templating Engine:

  • Basic syntax

  • Control structures

  • Built-in functions

  • Creating custom layouts

Eloquent ORM:

  • Introduction to Eloquent models

  • Defining relationships between models

  • Running queries on models

  • Create, read, update, and delete (CRUD) operations

Practical Exercises:

  • Creating a simple web application to manage a list of items with CRUD functionality

  • Implementing basic user authentication

Artisan:

  • Useful commands for Laravel development

  • Creating custom commands

  • Managing database migrations

Testing:

  • Introduction to unit tests

  • Integration tests

  • Functional tests

  • Using PHPUnit with Laravel

Middleware:

  • Introduction to middleware

  • Creating custom middleware

  • Using middleware for authentication, authorization, and more

Error and Exception Handling:

  • Basic error handling in Laravel

  • Logging and managing custom exceptions

Deploying a Laravel Application:

  • Common deployment options

  • Deploying to shared hosting

  • Deploying to a VPS or cloud server

Practical Exercises:

  • Implementing advanced user authentication with middleware

  • Writing unit tests for routes and controllers

  • Deploying the Laravel application on a hosting service

Note:
Practical exercises will be provided throughout the course to allow participants to apply the concepts learned.

 

Scroll to Top