Tag

Laravel

Browsing

sudo nano /etc/apache2/sites-available/000-default.conf <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/website_name_laravel/public ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> Folder Permission chmod -R 777 storage sudo /etc/init.d/apache2 restart sudo service apache2 restart Remove index.php from url sudo nano /etc/apache2/apache2.conf Change permission folder <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> sudo a2enmod rewrite sudo systemctl restart apache2 php myadmin not working sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf sudo a2enconf phpmyadmin sudo service apache2 reload

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