Top Menu

Category Archives Php

In this tutorial, we'll be installing and using the Laravel 9 authentication UI tutorial. This tutorial will show you how to create a simple authentication using the Laravel 9 framework and the Laravel UI package. we'll walk you through each step and explain everything in details so you can eassily follow along. Laravel/UI package is a composer package for Laravel…

Here, i will explain to create seeder for insert multiple records on database table in laravel framework. In this example you will show how to use seeder and how you can run specific seeder in laravel project. We should know what is database seeder in laravel and why we should use before start example of database seeding. Laravel provides a…

Here we discuss how to add toaster notification in any version of laravel application. In this post, we will look at how we can utilize any version of Laravel’s flash helper function to show toaster notifications in our application.When user signup or sign in on your website, or perform an action, it’s always recommended to notify the user about progress…

Some time we need concat multiple fields with pluck function in laravel Here we describe how use multiple columns in pluck function use of concat public function get_course() { $course_type = $_GET['course_type']; $courseArray = DB::table('courses')->where(['status' => 0, 'course_type' => $course_type]) ->orderBy('name', 'asc') ->pluck(DB::raw('CONCAT(name," -->",duration_in_month, " Months") AS name'),'id'); return json_encode($courseArray); }

By default, Laravel Eloquent models assume your table has timestamp fields – created_at and updated_at. But there’s plenty of things you can do to customize them or perform some interesting operations. Deepcool Fan Hub Control 4PWM Fan Speed Supports Fan with 3Pin/4Pin Cooling FH-04 If your database table doesn’t have those fields, and you will try to do something like…

What Are HTTP And HTTPS? HTTP  is the cornerstone web technology that helps to transmit and share information across the WWW. HTTPS is the second version of HTTP. It will make the Internet a safe haven for day-to-day transactions like eCommerce, Internet banking, instant messaging, video chat, file transfer, cloud storage, etc. SSL Makes All The Difference The key point…

This Free database does not guarantee for the complete list of world countries, states and cities. Seeking Country/State/City Database? Here You got a list of Countries, States and Cities. Country List is SQL/Msql CREATE TABLE IF NOT EXISTS `countries` ( `id` int(11) NOT NULL AUTO_INCREMENT, `sortname` varchar(3) NOT NULL, `name` varchar(150) NOT NULL, `phonecode` int(11) NOT NULL, PRIMARY KEY (`id`)…

I try again and again to test sending an email from local system (localhost) but I still cannot. Solution All you have to do is just edit in you.env file, that's it. MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=465 MAIL_USERNAME=<your_email_address> MAIL_PASSWORD=<your_gmail_app_password_> MAIL_ENCRYPTION=ssl

WHY WE USE CAPTCHA reCAPTCHA is a CAPTCHA-like system designed to establish that a computer user is human (normally in order to protect websites from bots) and, at the same time, assist in the digitization of booksHere I am describe how can add google captcha in yii1 MVC frame work.1. Download GitHub repo (jafarkhanphp/googleRcaptcha) and extract files into a destination…

I have noticed that the fields do not trim/strip whitespaces and I'm wondering how I can do this. I have a form in Yii. Here if I enter trimp values, It gives me an error. That is working fine, But if I add some spaces in front of the field,  It does not gives me an error, nor save the…

Close