Q #1) What is Laravel?.
Laravel is a free and open-source PHP framework that is utilized to developed wide variety of web applications. Laravel is an accessible language for new programmers because the laravel community provides lots of modules resources are free available. Laravel provides a simple way to authorization logic and control access to resources with a simple ActiveRecord implementation that makes their interaction with databases.
Q #2) Define Composer.
Composer is a dependency manager for php framework. Composer runs through the command line. The main purpose of the composer is to install the dependencies or libraries for an…
$projects = array();
// fetch data from the database
$records = mysql_query('select project_num, project_status, project_name from tblprojects') or die("Query fail: " . mysqli_error());
<table class="table table-striped table-condensed" id="tblData">
while ( $row = mysql_fetch_assoc($records) )
$projects = $row;
foreach ($projects as $project):
<td><?echo $project['proj_name']; ?></td>
<td><?echo $proj['proj_num']; ?></td>
<td><?echo $proj['proj_status']; ?></td>
SQLSTATE[HY000]: General error: 1364 Field ‘phone’ doesn’t have a default value (SQL: insert into `products` (`name`, `email`, `address`, `image`, `updated_at`, `created_at`) values (amti, email@example.com, sdafasdf, 642917381.jpg, 2021–05–11 10:58:35, 2021–05–11 10:58:35))
When I’m submit form then got General error field doesn’t have default value. let’s go to solve this.
👉 1 step go to your database and put change none>to Null and save.
Lets go to phpmyadmin
In this tutorial I’m going to learn how to create Crud operation in Laravel. Please follow some easy steps define below.
Open terminal in xampp/htdocs and paste below code
composer create-project laravel/laravel example-app
Setup database with your installed laravel 8 project . lets go to .env folder and put database name and connect to database.
👇 Next go to .env folder and put database name
Next run this command
php artisan migrate
Run this command
php artisan make:migration create_products_table --create=products
Copy below code and simply paste in your products table
When i download the Laravel project from Github and setup project i run composer update its showing this types of error
- Root composer.json requires php ^7.3|^8.0 but your php version (7.2.34) does not satisfy that requirement.
- phpro/grumphp[v1.0.0, ..., v1.1.0] require php ^7.3 -> your php version (7.2.34) does not satisfy that requirement.
- phpro/grumphp[v1.2.0, ..., v1.3.1] require php ^7.3 || ^8.0 -> your php version (7.2.34) does not satisfy that requirement.
- Root composer.json requires phpro/grumphp ^1.0 -> satisfiable by phpro/grumphp[v1.0.0, ..., v1.3.1].
Let open editor and run below
composer install --ignore-platform-reqs
In this tutorial I'm going to describe how to add data in DataTable in laravel 8 we will create single page companies ajax crud application (SPA) using dataTables js, modal and jQuery in laravel 8.
Laravel 8 Ajax CRUD Tutorial using Datatable JS
Step 1 – Download Laravel 8 App
Step 2 – Database Configuration
Step 3 – Installing Yajra Datatables
Step 4 – Make Model & Migration
Step 5 – Make Routes
Step 6 – Create AJAX CRUD Datatables Controller
Step 7 – Create Blade Views File
Step 8 – Run Development Server
1st step Install laravel…
In this tutorial I’m going to describe how to add facebook comment in html page, please follow some easy steps its helpful for you.
1st step go to Facebook for Developers Facebook comment
2 nd step: Paste your website URL which website you want to show facebook comment.
In this tutorial I’m going to describe how to store data in bootstrap 4 pop modal in laravel.
composer create-project laravel/laravel employee "5.8.*"
Step 2-> Go to .env and set up connect with database
3rd step migrate table
php artisan migrate
Next create migration table as name of employees lets go and create table
php artisan make:migration create_employees_table
Next got to database/migration/create_emoloyees_table and open this file
Simply copy and paste this code
class CreateEmployeesTable extends Migration
* Run the migrations…
Whenever you import file in in database then after some processing time its show you have using Maximum execution time of 300 seconds exceeded will be showing this type of error in your database:
1 step go to config.default.php
Once that’s done get back to finding phpMyadmin config file named something like “config.default.php”. On XAMPP you will find it under “C:\xampp\phpMyAdmin\libraries” folder. Open the file called
config.default.php and set :
$cfg['ExecTimeLimit'] = 0;
Simply paste here..
In this tutorial I’m going to solve stream_socket_enable_crypto error please follow some easy steps 👇👇
Go to App\config\mail.php
lets open mail.php file and paste below code.
'stream' => [
'ssl' => [
'allow_self_signed' => true,
'verify_peer' => false,
'verify_peer_name' => false,
And now your activation mail has been sent successfully.