Laravel LIke operator
function chat_user_search(Request $req){ $data = DB::table('users')->where('name', 'like', '%'.$req->search.'%')->get(); foreach ($data as $key => $value) { }
function chat_user_search(Request $req){ $data = DB::table('users')->where('name', 'like', '%'.$req->search.'%')->get(); foreach ($data as $key => $value) { }
This is a Simple Chat System created using PHP/MySQLi and AJAX/jQuery. It features a chat room that is locked by a password depending on the creator of the room. The…
composer require pusher/pusher-php-server php artisan make:event PusherBroadcast
Crud operation in php refer to the four basic functions used in php - databases: Create, Read, Update, and Delete. In PHP and MySQL, CRUD operations are commonly used for building dynamic web applications that require the management of data.…
PhonePe Payment Gateway Integration in Laravel; In this post, we will phopepe integrate in our laravel application. Phopepe is India's largets payment collection api platform that allows vendors to integration…
PHP Global Variables - Superglobals Some predefined variables in PHP are "superglobals", which means that they are always accessible, regardless of scope - and you can access them from any…
PHP - Sort Functions For Arrays In this chapter, we will go through the following PHP array sort functions: sort() - sort arrays in ascending order rsort() - sort arrays in descending…