What is Git Git is a distributed version control system for tracking changes in source code during software development. It is designed for coordinating work among programmers, but it can be used to track changes in any set of files. Its goals include speed, data integrity, and support for distributed, non-linear workflows. What is GitLab GitLab is a web-based DevOps lifecycle tool that provides a Git-repository manager providing, issue-tracking and continuous integration and continuous delivery…

What are Implode and Explode functions? Ans: The implode() function returns a string from the elements of an array. It takes an array of strings and joins them together into one string using a delimiter (string to be used between the pieces) of your choice. The implode function in PHP is easily converting as “array to string”, which simply means that it takes an array and returns a string. It rejoins any array elements and…

Today, I am going to show you how to create a custom 404 page in laravel 7.First, you need to create a page inside of resources/views/errors/404.blade.phpNow, Code inside of 404.blade.php <!DOCTYPE html> <html lang=”en”> <head> <link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css”> <script src=”https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js” ></script> <style type=”text/css”> *{ transition: all 0.6s; } html { height: 100%; } body{ font-family: ‘Lato’, sans-serif; color: #888; margin: 0; } #main{ display: table; width: 100%; height: 100vh; text-align: center; } .fof{ display: table-cell;…

Codeigniter 3 CRUD Operation with MySQL Database with example In this tutorial, I will cover CRUD operation with MySQL database with example in Codeigniter 3. You can check the step by step process we used a simple application having crud functionality in Codeigniter 3 with MySQL Database. CRUD operation is functionality in all application of familiarity with basic create, read, update and delete functionality with the Database. The Process of crud functionality. Step 1: Install…

1) Configure database connection Application/config/database.php Hostname, Username, Password, Database name $db[‘default’] = array( ‘dsn’ => ”, ‘hostname’ => ‘localhost’, ‘username’ => ‘root’, ‘password’ => ‘root’, ‘database’ => ‘code3’, ‘dbdriver’ => ‘mysqli’, ‘dbprefix’ => ”, ‘pconnect’ => FALSE, ‘db_debug’ => (ENVIRONMENT !== ‘production’), ‘cache_on’ => FALSE, ‘cachedir’ => ”, ‘char_set’ => ‘utf8’, ‘dbcollat’ => ‘utf8_general_ci’, ‘swap_pre’ => ”, ‘encrypt’ => FALSE, ‘compress’ => FALSE, ‘stricton’ => FALSE, ‘failover’ => array(), ‘save_queries’ => TRUE ); 2) Create…

<!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <meta http-equiv=”X-UA-Compatible” content=”ie=edge”> <title>Javascript form validation</title> </head> <body> <script> function validateform() { var name = document.singinform.name.value; var password = document.singinform.password.value; if (name == null || name == “”) { document.getElementById(“error”).innerHTML = “Name Can’t be blank”; return false; } else if (password.length < 6) { document.getElementById(“error”).innerHTML = “Paasword must me 6 digit”; return false; } else if (password == “password”) { document.getElementById(“error”).innerHTML = “password could…

Add below code in config/database.php ‘mysql’ => [ ‘driver’ => ‘mysql’, ‘host’ => env(‘DB_HOST’, ‘localhost’), ‘port’ => env(‘DB_PORT’, ‘3306’), ‘database’ => env(‘DB_DATABASE’, ‘laravel_crud_vue’), ‘username’ => env(‘DB_USERNAME’, ‘root’), ‘password’ => env(‘DB_PASSWORD’, ‘root@123’), ‘charset’ => ‘utf8’, ‘collation’ => ‘utf8_unicode_ci’, ‘prefix’ => ”, ‘strict’ => true, ‘engine’ => null, ‘modes’ => [ ‘ONLY_FULL_GROUP_BY’, ‘STRICT_TRANS_TABLES’, ‘NO_ZERO_IN_DATE’, ‘NO_ZERO_DATE’, ‘ERROR_FOR_DIVISION_BY_ZERO’, ‘NO_ENGINE_SUBSTITUTION’, ], ],

Step 1: Setup Laravel 6 We going to setup laravel 6 projects in our machine laravel new laravel Step 2: Install dompdf Package we will install barryvdh/laravel-dompdf composer package by following composer command in your laravel 6 application. we need to install barryvdh/laravel-dompdf composer package in our project. composer require barryvdh/laravel-dompdf After installation package, open config/app.php file and add service provider and alias. config/app.php ‘providers’ => [ …. Barryvdh\DomPDF\ServiceProvider::class, ], ‘aliases’ => [ …. ‘PDF’…

https://www.youtube.com/watch?v=5WHFlzAD2uw&t=613s Prerequisites PHP >= 7.1.3OpenSSL PHP ExtensionPDO PHP ExtensionMbstring PHP ExtensionTokenizer PHP ExtensionXML PHP ExtensionCtype PHP ExtensionJSON PHP Extension Getting started Check all Prerequisites are installed in your machine. then this tutorial is already looking for you, we will create 3 user class – admin, blogger, user and we will make guards for 3 user classes and restriction different parts of the application based on those guards. Create the applicationWe need to run command to…