Category: PHP

How to use PHP Interface in Laravel?

PHP interfaces are a blueprint of a class, that defines a set of methods that…

 Posted in Laravel, PHP Tagged , ,

Laravel Sanctum: Create a token

In Laravel Sanctum, you can create a token for a user through various authentication mechanisms….

 Posted in PHP Tagged , , , ,
laravel_blog_image

Laravel Migration: How to add a column with a default of an existing column

In this post, we will see how to add a new column to an existing…

 Posted in Laravel, PHP Tagged ,

PHP8: Match Expressions

Switch statements in PHP are useful, yet clunky. Think of the new match expression in PHP 8…

 Posted in PHP Tagged , , ,

PHP8: Null safe operator 

Null safe operator is a new short syntax in PHP 8.0, that provides an optional chaining feature…

 Posted in PHP Tagged , , ,

PHP: Flip a coin

In this post, we will write a small program that will flip a coin for…

 Posted in PHP, Tips Tagged , , , ,
laravel_blog_image

How to install all required PHP extensions for Laravel?

Problem This problem can occur while creating Laravel project via composer and the system is…

 Posted in Laravel, PHP

WordPress: Including CSS & JavaScript

While you are developing Wordpress theme, you may want to add custom stylesheets or javascript files.

 Posted in CMS, Development, PHP Tagged ,
Laravel

Laravel: Login with email or phone

How to login with phone or email in Laravel passport?

 Posted in Code snippets, Laravel, PHP, Programming Tagged , ,

Drupal: Working with filters criteria

A View filter restricts the entities displayed by the View to only those match the…

 Posted in CMS, PHP Tagged , , , , ,