Author

Siddharth Shukla

Browsing

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…

<!– This code will translate page contents automatically (without user input) Settings located at line 9, current script will translate english to estonian –> <style>#google_translate_element,.skiptranslate{display:none;}body{top:0!important;}</style> <div id=”google_translate_element”></div> <script> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: ‘en’, includedLanguages: ‘it’, autoDisplay: false}, ‘google_translate_element’); var a = document.querySelector(“#google_translate_element select”); a.selectedIndex=1; a.dispatchEvent(new Event(‘change’)); } </script> <script src=”//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit”></script>

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…

Voyager image not showing First Remove from localhost from .env file and put URL your server rm public/storage then rerun the symlink code again php artisan storage:link sudo rm -r public/storage then rerun the symlink code again $ php artisan storage:link voyager.php setting: ‘storage’ => [ ‘subfolder’ => ‘public/’, // include trailing slash, like ‘my_folder/’ ], filesystem.php setting: ‘default’ => ‘local’, ‘cloud’ => ‘s3’, ‘disks’ => [ ‘local’ => [ ‘driver’ => ‘local’, ‘root’ =>…

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 below code within .htaccess file RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.in [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.domain.in/$1 [R,L] $ sudo nano /etc/apache2/sites-enabled/000-default.conf <Directory /var/www/html> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName #…

<!DOCTYPE html> <html> <head> <title>Get unique values from array in Jquery – Real Programmer</title> <script src=”https://code.jquery.com/jquery-1.12.4.js”></script> </head> <body> <h1>Check unqiue value in console</h1> <script type=”text/javascript”> var user_name = [ “Siddharth”, “Saurabh”, “Siddharth”, “Yash”,”Yash”,”Saurabh” ]; var uniquename = user_name.filter(function(item, i, user_name) { return i == user_name.indexOf(item); }); console.log(uniquename); </script> </body> </html> <!– OUTPUT: (3) [“Siddharth”, “Saurabh”, “Yash”] –>