<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Salman Abbas (سلیمان)</title>
    <description>The latest articles on DEV Community by Salman Abbas (سلیمان) (@suleman).</description>
    <link>https://dev.to/suleman</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F781342%2Fc2a2e85c-7a7c-4272-8c61-e47797ca7c4c.jpeg</url>
      <title>DEV Community: Salman Abbas (سلیمان)</title>
      <link>https://dev.to/suleman</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/suleman"/>
    <language>en</language>
    <item>
      <title>LARAVEL : EXPORT DATA TO PDF (DOMPDF)</title>
      <dc:creator>Salman Abbas (سلیمان)</dc:creator>
      <pubDate>Fri, 08 Jul 2022 13:44:19 +0000</pubDate>
      <link>https://dev.to/suleman/laravel-export-data-to-pdf-dompdf-3g6b</link>
      <guid>https://dev.to/suleman/laravel-export-data-to-pdf-dompdf-3g6b</guid>
      <description>&lt;p&gt;Video link:&lt;br&gt;
&lt;a href="https://youtu.be/8eMBg6pBrVs"&gt;https://youtu.be/8eMBg6pBrVs&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  HELLO FELLOW DEVELOPER!
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;How are you?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In laravel you can easily export your data in pdf format with the help of this useful package that is called dompdf. In this tutorial I have given you an example by exporting users data from database to pdf file.&lt;/p&gt;

&lt;p&gt;Package link:&lt;br&gt;
&lt;a href="https://github.com/barryvdh/laravel-dompdf"&gt;https://github.com/barryvdh/laravel-dompdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Well we will cover this up step by step so let's follow this article or video that I have given above.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;STEP # 01:&lt;/strong&gt;&lt;br&gt;
Install and configure the dompdf package first..&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;composer require barryvdh/laravel-dompdf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan vendor:publish --provider="Barryvdh\DomPDF\ServiceProvider"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;STEP #02:&lt;/strong&gt;&lt;br&gt;
Add this function in to your controller to view pdf.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public function viewPDF()
    {
        $users = User::all();

        $pdf = PDF::loadView('pdf.usersdetails', array('users' =&amp;gt;  $users))
        -&amp;gt;setPaper('a4', 'portrait');

        return $pdf-&amp;gt;stream();

    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add this funtion into your controller to download pdf...&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public function downloadPDF()
    {
        $users = User::all();

        $pdf = PDF::loadView('pdf.usersdetails', array('users' =&amp;gt;  $users))
        -&amp;gt;setPaper('a4', 'portrait');

        return $pdf-&amp;gt;download('users-details.pdf');   
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make route of this function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Route::post('users/view-pdf', [HomeController::class, 'viewPDF'])-&amp;gt;name('view-pdf');
Route::post('users/download-pdf', [HomeController::class, 'downloadPDF'])-&amp;gt;name('download-pdf');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Well you can use any html template to export your data but let me share with you that I have used in my video.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;

&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;title&amp;gt;User Details&amp;lt;/title&amp;gt;

    &amp;lt;style&amp;gt;
        table {
            width: 95%;
            border-collapse: collapse;
            margin: 50px auto;
        }

        /* Zebra striping */
        tr:nth-of-type(odd) {
            background: #eee;
        }

        th {
            background: #3498db;
            color: white;
            font-weight: bold;
        }

        td,
        th {
            padding: 10px;
            border: 1px solid #ccc;
            text-align: left;
            font-size: 18px;
        }


    &amp;lt;/style&amp;gt;

&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;

    &amp;lt;div style="width: 95%; margin: 0 auto;"&amp;gt;
        &amp;lt;div style="width: 10%; float:left; margin-right: 20px;"&amp;gt;
            &amp;lt;img src="{{ public_path('assets/images/logo.png') }}" width="100%"  alt=""&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;div style="width: 50%; float: left;"&amp;gt;
            &amp;lt;h1&amp;gt;All User Details&amp;lt;/h1&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;

    &amp;lt;table style="position: relative; top: 50px;"&amp;gt;
        &amp;lt;thead&amp;gt;
            &amp;lt;tr&amp;gt;
                &amp;lt;th&amp;gt;First Name&amp;lt;/th&amp;gt;
                &amp;lt;th&amp;gt;Last Name&amp;lt;/th&amp;gt;
                &amp;lt;th&amp;gt;Email&amp;lt;/th&amp;gt;
                &amp;lt;th&amp;gt;Date Of Joining&amp;lt;/th&amp;gt;
            &amp;lt;/tr&amp;gt;
        &amp;lt;/thead&amp;gt;
        &amp;lt;tbody&amp;gt;
            @foreach ($users as $user)
                &amp;lt;tr&amp;gt;
                    &amp;lt;td data-column="First Name"&amp;gt;{{ $user-&amp;gt;first_name }}&amp;lt;/td&amp;gt;
                    &amp;lt;td data-column="Last Name"&amp;gt;{{ $user-&amp;gt;last_name }}&amp;lt;/td&amp;gt;
                    &amp;lt;td data-column="Email" style="color: dodgerblue;"&amp;gt;
                        {{ $user-&amp;gt;email }}
                    &amp;lt;/td&amp;gt;
                    &amp;lt;td data-column="Date"&amp;gt;
                        {{ date('F j, Y', strtotime($user-&amp;gt;create_at)) }}
                    &amp;lt;/td&amp;gt;
                &amp;lt;/tr&amp;gt;
            @endforeach
        &amp;lt;/tbody&amp;gt;
    &amp;lt;/table&amp;gt;

&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you have any queries or issue pin your comments below or watch the video!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/8eMBg6pBrVs"&gt;https://youtu.be/8eMBg6pBrVs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;THANKS!!!&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>tutorial</category>
      <category>php</category>
    </item>
    <item>
      <title>PayPal Integration Laravel</title>
      <dc:creator>Salman Abbas (سلیمان)</dc:creator>
      <pubDate>Fri, 24 Jun 2022 12:51:37 +0000</pubDate>
      <link>https://dev.to/suleman/paypal-integration-laravel-2ahl</link>
      <guid>https://dev.to/suleman/paypal-integration-laravel-2ahl</guid>
      <description>&lt;p&gt;You can follow this video:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=GVrbVXLfFzw&amp;amp;t" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=GVrbVXLfFzw&amp;amp;t&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step # 01 :&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Create PayPal account:
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://developer.paypal.com/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By creating an account there will be two options as shown in the video. One is the sandbox account option and the other one is the Live account option. If you want to test or working in a development then you should create sandbox account and if you are working on a live server then you will use live option.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9h9ns60skpo0iau3sgsp.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9h9ns60skpo0iau3sgsp.PNG" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now after creating new app, you can see your client id and secrect id.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4sluqmavntaizolm81z5.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4sluqmavntaizolm81z5.PNG" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step # 02 :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now add these above client id and secrect id in your .env file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F796xasrc9jhsqa8cau6k.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F796xasrc9jhsqa8cau6k.PNG" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step # 03 :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now let's add a model and migration and connect to your database:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan make:model Payment -m
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
        Schema::create('payments', function (Blueprint $table) {
            $table-&amp;gt;id();
            $table-&amp;gt;string('payment_id');
            $table-&amp;gt;string('payer_id');
            $table-&amp;gt;string('payer_email');
            $table-&amp;gt;float('amount', 10, 2);
            $table-&amp;gt;string('currency');
            $table-&amp;gt;string('payment_status');
            $table-&amp;gt;timestamps();
        });
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan migrate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step # 04 :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now let's install a package that we are going to use to integrate PayPal api into our application:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;composer require league/omnipay omnipay/paypal&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step # 05 :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now let's make a controller :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan make:controller PaymentController
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will be our controller code :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;?php

namespace App\Http\Controllers;

use App\Models\Payment;
use Illuminate\Http\Request;
use Omnipay\Omnipay;

class PaymentController extends Controller
{
    private $gateway;

    public function __construct() {
        $this-&amp;gt;gateway = Omnipay::create('PayPal_Rest');
        $this-&amp;gt;gateway-&amp;gt;setClientId(env('PAYPAL_CLIENT_ID'));
        $this-&amp;gt;gateway-&amp;gt;setSecret(env('PAYPAL_CLIENT_SECRET'));
        $this-&amp;gt;gateway-&amp;gt;setTestMode(true);
    }

    public function pay(Request $request)
    {
        try {

            $response = $this-&amp;gt;gateway-&amp;gt;purchase(array(
                'amount' =&amp;gt; $request-&amp;gt;amount,
                'currency' =&amp;gt; env('PAYPAL_CURRENCY'),
                'returnUrl' =&amp;gt; url('success'),
                'cancelUrl' =&amp;gt; url('error')
            ))-&amp;gt;send();

            if ($response-&amp;gt;isRedirect()) {
                $response-&amp;gt;redirect();
            }
            else{
                return $response-&amp;gt;getMessage();
            }

        } catch (\Throwable $th) {
            return $th-&amp;gt;getMessage();
        }
    }

    public function success(Request $request)
    {
        if ($request-&amp;gt;input('paymentId') &amp;amp;&amp;amp; $request-&amp;gt;input('PayerID')) {
            $transaction = $this-&amp;gt;gateway-&amp;gt;completePurchase(array(
                'payer_id' =&amp;gt; $request-&amp;gt;input('PayerID'),
                'transactionReference' =&amp;gt; $request-&amp;gt;input('paymentId')
            ));

            $response = $transaction-&amp;gt;send();

            if ($response-&amp;gt;isSuccessful()) {

                $arr = $response-&amp;gt;getData();

                $payment = new Payment();
                $payment-&amp;gt;payment_id = $arr['id'];
                $payment-&amp;gt;payer_id = $arr['payer']['payer_info']['payer_id'];
                $payment-&amp;gt;payer_email = $arr['payer']['payer_info']['email'];
                $payment-&amp;gt;amount = $arr['transactions'][0]['amount']['total'];
                $payment-&amp;gt;currency = env('PAYPAL_CURRENCY');
                $payment-&amp;gt;payment_status = $arr['state'];

                $payment-&amp;gt;save();

                return "Payment is Successfull. Your Transaction Id is : " . $arr['id'];

            }
            else{
                return $response-&amp;gt;getMessage();
            }
        }
        else{
            return 'Payment declined!!';
        }
    }

    public function error()
    {
        return 'User declined the payment!';   
    }

}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step # 06 :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Now let's make make routes :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Route::get('/', [HomeController::class, 'index']);
Route::post('pay', [PaymentController::class, 'pay'])-&amp;gt;name('payment');
Route::get('success', [PaymentController::class, 'success']);
Route::get('error', [PaymentController::class, 'error']);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You are good to go, now you can easily use the route in your checkout form.&lt;/p&gt;

&lt;p&gt;I hope it will be helpful!&lt;/p&gt;

&lt;p&gt;Comment below if you face any issue.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>tutorial</category>
      <category>programming</category>
      <category>laravel</category>
    </item>
    <item>
      <title>Integrating Google re-Captcha In Laravel</title>
      <dc:creator>Salman Abbas (سلیمان)</dc:creator>
      <pubDate>Thu, 24 Feb 2022 08:39:30 +0000</pubDate>
      <link>https://dev.to/suleman/integrating-google-re-captcha-in-laravel-5325</link>
      <guid>https://dev.to/suleman/integrating-google-re-captcha-in-laravel-5325</guid>
      <description>&lt;h2&gt;
  
  
  Hello!
&lt;/h2&gt;

&lt;p&gt;The aim of this simple blog post is to give you the demonstration of how you can add google capthca verification in your laravel application.&lt;/p&gt;

&lt;p&gt;Video link of this same post.&lt;br&gt;
&lt;a href="https://youtube.com/watch?v=KzWJDV00ITc&amp;amp;t" rel="noopener noreferrer"&gt;https://youtube.com/watch?v=KzWJDV00ITc&amp;amp;t&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The package that we will going to use:&lt;br&gt;
&lt;a href="https://github.com/anhskohbo/no-captcha" rel="noopener noreferrer"&gt;https://github.com/anhskohbo/no-captcha&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Step #01:
&lt;/h2&gt;

&lt;p&gt;Installing package&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;composer require anhskohbo/no-captcha
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step # 02:
&lt;/h2&gt;

&lt;p&gt;Go to app/config/app.php file of your project and then go to the providers array and add this class to the providers array.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Anhskohbo\NoCaptcha\NoCaptchaServiceProvider::class,
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, in the same file go to the aliases array and add this package aliase.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Anhskohbo\NoCaptcha\NoCaptchaServiceProvider::class,
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, Let's publish the config file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan vendor:publish --provider="Anhskohbo\NoCaptcha\NoCaptchaServiceProvider"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step # 03
&lt;/h2&gt;

&lt;p&gt;Now let's configure this package, To configure this you need to add add NOCAPTCHA_SECRET and NOCAPTCHA_SITEKEY in .env file.&lt;/p&gt;

&lt;p&gt;Go to the &lt;strong&gt;.env&lt;/strong&gt; file and add these lines:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;NOCAPTCHA_SECRET=secret-key
NOCAPTCHA_SITEKEY=site-key
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you need to generate these secret key and site key from google re-captcha form.&lt;/p&gt;

&lt;p&gt;Link to generate google re-Captcha keys:&lt;br&gt;
&lt;a href="https://www.google.com/recaptcha/admin/create" rel="noopener noreferrer"&gt;https://www.google.com/recaptcha/admin/create&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is the form here from where you can generate these keys.&lt;br&gt;
If you are on a local-server so the below form fields will work great for you but if you are on a live server you just need to add your domain.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx7uhh956c61ii950ogze.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx7uhh956c61ii950ogze.PNG" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Step # 04
&lt;/h2&gt;

&lt;p&gt;Now, we will see that how you can you display this re-captcha in the front-end part of your application.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div&amp;gt;
 {!! NoCaptcha::renderJs() !!}
 {!! NoCaptcha::display() !!}
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By adding the above div in to the front end of your blade file, the re-captcha will be displayed.&lt;/p&gt;

&lt;p&gt;I hope this blog will help you in any manner to learn how to add re-Captcha verification in your laravel application.&lt;/p&gt;

&lt;p&gt;If you have any queries or questions or facing any problems, Feel free to mention here in the comment below.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;

&lt;p&gt;Video Link :&lt;br&gt;
&lt;a href="https://youtube.com/watch?v=KzWJDV00ITc&amp;amp;t" rel="noopener noreferrer"&gt;https://youtube.com/watch?v=KzWJDV00ITc&amp;amp;t&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>WHAT IS SOURCETREE? HOW TO INSTALL IT?</title>
      <dc:creator>Salman Abbas (سلیمان)</dc:creator>
      <pubDate>Sat, 01 Jan 2022 17:53:32 +0000</pubDate>
      <link>https://dev.to/suleman/what-is-sourcetree-how-to-install-it-f61</link>
      <guid>https://dev.to/suleman/what-is-sourcetree-how-to-install-it-f61</guid>
      <description>&lt;p&gt;Hey folks!&lt;/p&gt;

&lt;p&gt;In this blog we will learn about sourcetree.&lt;/p&gt;

&lt;p&gt;So first of all what is sourcetree?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Sourcetree is a gui application (desktop client app) that helps
you to interact with your git repository. 
Basically you can perform almost all operations on your git repository.

So, if you want say good bye to your command line or 
if you want to learn github without using command line 
or github commands then sourcetree would be the best solution for you.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yeX8Rsc8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xlbitlt6bf2zq5g88nkd.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yeX8Rsc8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xlbitlt6bf2zq5g88nkd.PNG" alt="Image description" width="872" height="549"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Now Let's Download Sourcetree:&lt;/strong&gt;&lt;br&gt;
 Go to &lt;a href="https://sourcetreeapp.com/"&gt;https://sourcetreeapp.com/&lt;/a&gt; then download the installer&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;then Install the setup:&lt;/strong&gt;&lt;br&gt;
  Installing sourcetree is simple as you install other simple softwares but if you are facing any issue.&lt;/p&gt;

&lt;p&gt;So, You can follow this video &lt;a href="https://www.youtube.com/watch?v=vx68MO3k_Ys"&gt;https://www.youtube.com/watch?v=vx68MO3k_Ys&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;

</description>
      <category>sourcetree</category>
      <category>github</category>
      <category>githunt</category>
      <category>git</category>
    </item>
    <item>
      <title>Email Verification After User Registration In Laravel</title>
      <dc:creator>Salman Abbas (سلیمان)</dc:creator>
      <pubDate>Mon, 27 Dec 2021 14:02:19 +0000</pubDate>
      <link>https://dev.to/suleman/email-verification-after-user-registration-in-laravel-124o</link>
      <guid>https://dev.to/suleman/email-verification-after-user-registration-in-laravel-124o</guid>
      <description>&lt;p&gt;How to verify user after registration?&lt;/p&gt;

&lt;p&gt;In this blog post, we will learn how to implement email verification after user registration. We will implement this in three simple steps with the help of this post.&lt;/p&gt;

&lt;p&gt;No matter if you have laravel/ui authentication or laravel/breeze authentication or any simple authentication you are using. In both authentication you just have to follow these steps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step #01: Create Or Open Laravel App:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Go to the user model App\Model\User.php&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Implements MustVerifyEmail interface in User class&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Include Destination&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;use Illuminate\Contracts\Auth\MustVerifyEmail;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Implements Interface&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class User extends Authenticatable implements MustVerifyEmail
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Step #02: Now let's assign middleware to the routes&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Middleware you have to assign is  the **verified&lt;/strong&gt; middleware**&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Route::get('/dashboard', function () {
    return view('dashboard');
})-&amp;gt;middleware(['auth','twofactor','verified'])&amp;gt;name('dashboard');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step # 03: Use Email Testing Tool&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can use mailtrap.io or any email testing tool.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. First Create Your Inbox&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1ucrxi9xsw4nm6o5nzs1.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1ucrxi9xsw4nm6o5nzs1.PNG" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Now, let's go to the smtp settings and copy laravel details..&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9a8biu4sedj96nit4e66.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9a8biu4sedj96nit4e66.PNG" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, paste these details in your .env file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=1e8ad4d5513cbb
MAIL_PASSWORD=84a6b3c29196fc
MAIL_ENCRYPTION=tls
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Also you have add your email from which you have registered to the mailtrap.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;MAIL_FROM_ADDRESS=youremail@email.com

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Now, Your application will have email verification service after user registration.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you follow all steps&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I hope this video will help you in implementing email verification in your laravel authentication.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;

&lt;p&gt;Helpful video :&lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=C91xjfQZtxE" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=C91xjfQZtxE&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>emailverification</category>
    </item>
    <item>
      <title>Log In &amp; Registration With Laravel/Ui - In Laravel</title>
      <dc:creator>Salman Abbas (سلیمان)</dc:creator>
      <pubDate>Mon, 27 Dec 2021 12:32:30 +0000</pubDate>
      <link>https://dev.to/suleman/log-in-registration-with-laravelui-in-laravel-5ddk</link>
      <guid>https://dev.to/suleman/log-in-registration-with-laravelui-in-laravel-5ddk</guid>
      <description>&lt;p&gt;Hello guys!&lt;/p&gt;

&lt;p&gt;This post aims to give you the demonstration of " How to add authentication in laravel with laravel/ui package".&lt;/p&gt;

&lt;p&gt;You can just follow some simple steps from this post to add log-in and registration options in laravel 8.x with the help of laravel/ui.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step # 01: Create Laravel App&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;composer create-project laravel/laravel LaravelApp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open this app in your vs code editor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step # 02: Installing laravel/UI package&lt;/strong&gt;&lt;br&gt;
Run in vs code terminal&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;composer require laravel/ui
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step # 03: Installing front end scaffolding&lt;/strong&gt;&lt;br&gt;
Now, You have three options here. (Bootstrap, Vue, React) You have to choose one.&lt;/p&gt;

&lt;p&gt;For Bootstrap:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan ui bootstrap
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For Vue:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan ui vue
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For React:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan ui react
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step # 04: Now run&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and also&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step # 05: Install Authentication&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But remember if you choose bootstrap scaffolding in previous &lt;br&gt;
command then you have to run the below command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan ui bootstrap --auth
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and if you choose Vue then&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan ui vue --auth
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and if you choose React then&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan ui react --auth
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Now, you have successfully installed the authentication in your application.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Let's just run&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan migrate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I hope this will help you to add authentication (login and registration) option in your laravel app with laravel/ui package.&lt;/p&gt;

&lt;p&gt;If you are facing any issue regarding to this then feel free to mention in the comment.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;

&lt;p&gt;Video Link:&lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=Agx4xITyYgQ&amp;amp;t"&gt;https://www.youtube.com/watch?v=Agx4xITyYgQ&amp;amp;t&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>authentication</category>
    </item>
  </channel>
</rss>
