Laravel 10 REST API using Sanctum Authentication


In this tutorial, we will learn about Laravel 10 REST API using Sanctum authentication by developing a complete Laravel REST API authentication with Sanctum application with simple and step by step guide.

We will build this Laravel 10 Sanctum API authentication in the easiest way so that even those, who are building API for the first time can easily build Laravel 10 Sanctum SPA API.

4 Comments

Facebook Official Page: All PHP Tricks

Twitter Official Page: All PHP Tricks

Simple Laravel 10 User Roles and Permissions


In this tutorial, we will learn about Laravel user roles and permissions by developing a complete Laravel 10 User Roles and Permissions application with easy and step by step guide.

We will use Spatie a Laravel permission package that will help us to create a Laravel ACL (Access Control List) to manage user roles and permissions.

26 Comments

Facebook Official Page: All PHP Tricks

Twitter Official Page: All PHP Tricks

Convert HTML to PDF using PHP Dompdf Library


In this tutorial, we will learn about how to convert HTML to PDF using PHP Dompdf Library.

PDF (Portable Document Format) is a very popular file format which retains file layout format as intended. It contains both text and images in it.

2 Comments

Facebook Official Page: All PHP Tricks

Twitter Official Page: All PHP Tricks

How to Attach Remote File to Email using PHPMailer


In this tutorial, we will learn about how to attach remote file to email using PHPMailer library.

PHPMailer provides a convenient method addAttachment() to attach files to email. However, this method does not work with remote files stored on remote server.

0 Comments

Facebook Official Page: All PHP Tricks

Twitter Official Page: All PHP Tricks