Tag

Laravel 6

Browsing

https://www.youtube.com/watch?v=5cQye6YfaGI&t=2s&ab_channel=Realprogrammer 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…

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…

Do you want to send mail using SMTP in Laravel 7? then I will give your real-time example how to send mail in Laravel 7? In this tutorial, I will guide you on how to send mail in Laravel 7. I will create blade file and dynamic information to for mail layout. let’s start from begging. Step 1: Create a Laravel 7 project laravel new laravel_sendmail Step 2: Open laravel project set .env configuration MAIL_DRIVER=smtp…

Hey, Reader Here, I will brief you step by step login with google account in Laravel 7 socialite. in Laravel 7 socialite provides API to login with Gmail account. I will help you step by step instruction. let’s follow the tutorial and implement it. Step 1: Install Laravel 7 I am going to install Laravel 7 projects. laravel new google_login Now I am going inside of the folder cd google_login Step 2: Install Socialite In…

Step 1: Setup Laravel 7 We going to setup Laravel 7 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 7 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’…

Step 1: Install Laravel 7 first of all, we need to get fresh Laravel 7 version application using bellow command, So open your terminal OR command prompt and run bellow command: laravel new laravel_blog Step 2: Database Configuration Open laravel_blog and set hostname, username, password and database name in .env file DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel_blog DB_USERNAME=root DB_PASSWORD=root Step 3: Create Migration Now we are going to create a blog. so we have to create a…

I resolved by doing the following: Check if there is a module called rewrite.load in your apache at: cd /etc/apache2/mods-enabled/ If it does not exist execute the following excerpt: sudo a2enmod rewrite Otherwise, change the Apache configuration file to consolidate use of the “friendly URL”. sudo nano /etc/apache2/apache2.conf Find the following code inside the editor: <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> Change to: <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All…

Add this code in below within .htaccess file RewriteRule ^(.*)$ index.php?/$1 [L] to RewriteRule ^(.*)$ index.php/$1 [L] based on the example urls your provide. http://url.lar/index.php/about/ doesn’t have a question mark in it after index.php It is also possible that mod_rewrite is not enabled. It looks like you are an a Debian based system such Ubuntu. You can use the command sudo a2enmod rewrite enable mod_rewrite