Tag

Laravel 7

Browsing

Laravel is a structure and it is really quick and fast. It is referred to as an improved and better framework. Laravel makes use of Eloquent because of which writing the database queries becomes easy. So it’s better to know the framework of laravel to make the things quick and fast and better in use. WordPress is referred to as mainly slow because of the use of plugins. WordPress is cheap and performance loads are…

Django is the most popular Python framework. here we going to setup API using Django framework and library TastyPie. We Expecting you have knowledge about CRUD operations. Here we going to build a REST-ful API with the CRUD operations, to create, read, update, and delete notes. Setting Up Our Project Django divides two parts of projects and apps. Projects contain apps, but apps do not have necessarily belong to a certain project — the idea…

Ajax Autocomplete Search in Laravel 7 Step 1: Install laravel 7 using composer composer create-project –prefer-dist laravel/laravel laravel7search Step 2: Going inside of project using the command cd laravel7search Step 3: Setup MySQL database Now, configure this database in the .env file. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel7search DB_USERNAME=root DB_PASSWORD=root@123 Step 3: Create Migration and Model In this step, we have to create a migration for students table using Laravel 7 PHP artisan command, so first fire…

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…

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;…

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…

Step 1: Install the laravel project using the command line. laravel new laravel_ajax Step 2: open project in code and use vs code terminal. Step 3: find .env file in root directory than setup database configuration. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database_name DB_USERNAME=database_username DB_PASSWORD=database_password Step 4: run Migration command php artisan make:migration create_books_table Now go to app/datatabase/migrations and open books migration file and put code within migration file app/database/timestamp_create_books_table.php the below code here : <?php public function…