Webiondev123

Webiondev123

Member Since 1 Year Ago

Experience Points 8,400
Experience Level 2

1,600 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 18
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

09 Jan
5 months ago

Webiondev123 started a new conversation Can Laravel Support A Massive Social Media App?

If you build a social media app in laravel is it scalable?

08 Jan
5 months ago

Webiondev123 started a new conversation Any Laravel Chat And Comment API?

Hi

I am looking for a chat system and commenting system for laravel.

Thanks

03 Jan
5 months ago

Webiondev123 started a new conversation Lavachart Geochart Multiple Bars Confused

How can I show multiple bars for geochart based on count in eloquent

Ok I have two tables users and need. I want to get the count of need category from need table based on country in users table. They are joined by user id.



   
 $data=User::select("country as 0", "id as 1")->get()->toArray() ; //stuck here
    $lava=new Lavacharts;
    $needstat=$lava->DataTable();
    //stuck here
    $needstat->addStringColumn("Country")
              ->addNumberColumn("Need Category1")
              ->addNumberColumn("Need Category2")
              ->addRows($data);//dsiplay count
              $lava->GeoChart("National Need Stat", $needstat);

Webiondev123 left a reply on Syntax Format In View

@BOBBYBOUWMANN - Ye i guess so.. To get the values

Webiondev123 left a reply on Syntax Format In View

@BOBBYBOUWMANN - Hi.

I want display data from data object returned to view. I am using fusionchart to create chart and i need data from my data object as chart variables and values for bar graph

Webiondev123 started a new conversation Syntax Format In View

Hi

I need to loop through each data as display

THIS


              "data": [{
                  "label": "Field",
                  "value": "600.7"
                }, {
                  "label": "Field",
                  "value": "41.7"
                }, {
                  "label": "Field",
                  "value": "25.1"
                }, {
                  "label": "Field",
                  "value": "24"
                }, {
                  "label": "Field",
                  "value": "18.5"
                },
       ]

AS

        "data": [{'.
            foreach($data as $data_){.'
                  "label": data_->field1,
                  "value": $data_->field2.'}.'


                } ]


          }');

I am confused about this syntax. WHich is correct way to show label and value from variable $data_

Thanks

Webiondev123 started a new conversation SQLSTATE[42000]: Syntax Error Or Access Violation: 1064

This is working in mysql cmd line but not in laravel query

  $data=DB::table('need')->select(DB::raw('count(distinct(user_id)) as numbers, category from need group by category'))->get();

01 Jan
5 months ago

Webiondev123 started a new conversation Data Mining With PHP/Laravel?

Hi

Ok so Python is leading in data mining right? I want to fetch tweetes and then do search based on keywords or statements. Can it be done by PHP or Laravel? What APIs are available?

29 Dec
5 months ago

Webiondev123 started a new conversation Remove Duplicate Results From Joins

Hi

How to check for duplicate results from joins even though different primary key

Webiondev123 left a reply on Trying To Load The Php Artisan Serve On Windows But It Is Not Working?

Have you configured a different port? See which port is serve using

Webiondev123 left a reply on Get Available Room Using Join

@VLAD_KASH - I am not even logged in or even registered. My database has no records. I am just trying to access the admin page

http://localhost/Test/public/admin

Which is supposed to be guarded

    public function handle($request, Closure $next)
    {
        if (auth()->check() && auth()->user()->isAdmin()) {
            return redirect('/admin');
        }
        abort(403, 'You do not have permission to perform this action.');
        //return $next($request);
    }

My route

Route::middleware(['admin'])->group(/**
 *
 */
function () {
  Route::get('/admin', function () {


      return view('admin');
  });
});

But I am able to see the admin page ...I must be doing something wrong

Webiondev123 left a reply on Extremely Confused About Middleware: Redirect Based On Role

@SYKR - Still not working

  public function handle($request, Closure $next)
    {
        if (auth()->check() && auth()->user()->type=='admin') {
            return redirect('/admin');
        }
        //abort(403, 'You do not have permission to perform this action.');
        return $next($request);
    }



28 Dec
5 months ago

Webiondev123 started a new conversation Extremely Confused About Middleware: Redirect Based On Role

I have two users: admin and user

Here are middlewares in kernel


  protected $middlewareGroups = [
        'web' => [
            \App\Http\Middleware\EncryptCookies::class,
            \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
            \Illuminate\Session\Middleware\StartSession::class,
            // \Illuminate\Session\Middleware\AuthenticateSession::class,
            \Illuminate\View\Middleware\ShareErrorsFromSession::class,
            \App\Http\Middleware\VerifyCsrfToken::class,
            \Illuminate\Routing\Middleware\SubstituteBindings::class,
            \App\Http\Middleware\Admin::class,
            \App\Http\Middleware\User::class,
        ],


    protected $routeMiddleware = [
        'auth' => \App\Http\Middleware\Authenticate::class,
        'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
        'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
        'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
        'can' => \Illuminate\Auth\Middleware\Authorize::class,
        'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
        'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
        'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
        'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
        'admin' => \App\Http\Middleware\Admin::class,
        'user' => \App\Http\Middleware\User::class,
    ];

Here are my middlewares:

//ADMIN

namespace App\Http\Middleware;

use Closure;

class Admin
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        return $next($request);
    }
}



//USER
namespace App\Http\Middleware;

use Closure;

class User
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        return $next($request);
    }
}

Here is my login controller:

class LoginController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Login Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles authenticating users for the application and
    | redirecting them to your home screen. The controller uses a trait
    | to conveniently provide its functionality to your applications.
    |
    */

    use AuthenticatesUsers;

    /**
     * Where to redirect users after login.
     *
     * @var string
     */
    protected $redirectTo = '/home';

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('guest')->except('logout');
    }
}

Here is my route


Route::get('/', function () {
    return view('welcome');
});
Auth::routes();
Route::middleware(['admin'])->group(/**
 *
 */
    function () {
Route::get('/admin', function () {
    return view('admin');
});
});


Route::middleware(['user'])->group(/**
 *
 */
    function () {
      Route::get('/user', function () {
          return view('user');
      });

});

Still not working...admin can view user and user can view admin pages!..Please clarify how does this work exactly?

Webiondev123 started a new conversation Check If Language Is English

Hi

How can I check if language of a database field is English or not?

Thanks

Webiondev123 started a new conversation Laravel Forge Scheduled Job No Such File Or Directory?

Hi.

My schedule working from localhost but on forge it is showing this

Command: /home/forge/mydomain.com/artisan schedule:run >> /dev/null 2>&1

cat: /home/forge/.forge/scheduled-367758.log: No such file or directory

27 Dec
5 months ago

Webiondev123 started a new conversation Check Difference Between Created_at And Today's Date?

Hi

Say I want to check if created_at and today's date differ by x days how can I do this?

$latest=User::where("type","seeker")->whereNull('deleted_at')->where('created_at', '??', Date(Y-m-d))->get();

Thanks

Webiondev123 started a new conversation Send Emails Occasionally And Delete Users Every X Months

Hi

I need to send to all users emails occasionally I also need to delete users every three months.

Can I do this with scheduler from laravel forge? If so any clarified examples? If not which tool I should use?

Thanks

26 Dec
5 months ago

Webiondev123 started a new conversation Help Me Set A Custom View For My Email Notification

Here is my email verify view but it is just showing without css

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
    <script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
</head>
<body>
    <style>
        @media only screen and (max-width: 600px) {
            .inner-body {
                width: 100% !important;
            }

            .footer {
                width: 100% !important;
            }
        }

        @media only screen and (max-width: 500px) {
            .button {
                width: 100% !important;
            }
        }
    </style>

    <table class="wrapper" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center">
                <table class="content" width="100%" cellpadding="0" cellspacing="0">
                    Email Verification

                    <!-- Email Body -->
                    <tr>
                        <td class="body" width="100%" cellpadding="0" cellspacing="0">
                            <table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0">
                                <!-- Body content -->
                                <tr>
                                    <td class="content-cell">
                                                                            <div class="col-md-9 cta-contents">
                                                                                    <h1 class="cta-title">Email verification</h1>
                                                                                    <div class="cta-desc">

                                                                                            <p>Please verify your email.
                                                                                                    <a href="{{url('/verifyemail/'.$email_token)}}">Verify</a></p>


                                                                                    </div>
                                                                            </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>

               MyDomain
                </table>
            </td>
        </tr>
    </table>
</body>
</html>

How can I change it to default laravel mail view and also how can I remove the header and footer Laravel logo with my custom?

Webiondev123 left a reply on Send Bulk Email To Users

@DOUGLASAKULA - Thanks..I fixed it

Webiondev123 left a reply on Send Bulk Email To Users

@DOUGLASAKULA - I fixed the check clause but now the email is being only sent to the first recipient. It is not ooping through all emails.

dd($user) correctly read everything

Webiondev123 left a reply on Send Bulk Email To Users

@DOUGLASAKULA - My condition check is failing even though condition is type X

//condition check fails even though it is type_X
     if ($data['type'] == "type_X") {
        Mail::send('email', ['title' => 'New type X Registration', 'content' => 'A new type X has just registered!'], function ($message)  use($data)
         {

             $message->from('[email protected]', 'domain');
             $message->subject('New type X Registration');
             $message->to('email of type Y'); //[email protected]

    //
      });
    }


    //works
        Mail::send('email', ['title' => 'New type X Registration', 'content' => 'A new type X has just registered!'], function ($message)  use($data)
         {

             $message->from('[email protected]', 'domain');
             $message->subject('New type X Registration');
             $message->to('email of type Y'); //[email protected]

    //
      });
    

Webiondev123 left a reply on Send Bulk Email To Users

@SNAPEY - Pls see my code

Webiondev123 left a reply on Where Is The Default Password Reset View?

@SERGIU17 - How do I set it to show in email?

I am doing this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
    <script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
</head>
<body>
    <style>
        @media only screen and (max-width: 600px) {
            .inner-body {
                width: 100% !important;
            }

            .footer {
                width: 100% !important;
            }
        }

        @media only screen and (max-width: 500px) {
            .button {
                width: 100% !important;
            }
        }
    </style>

    <table class="wrapper" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center">
                <table class="content" width="100%" cellpadding="0" cellspacing="0">
                    Email Verification

                    <!-- Email Body -->
                    <tr>
                        <td class="body" width="100%" cellpadding="0" cellspacing="0">
                            <table class="inner-body" align="center" width="570" cellpadding="0" cellspacing="0">
                                <!-- Body content -->
                                <tr>
                                    <td class="content-cell">
                                                                            <div class="col-md-9 cta-contents">
                                                                                    <h1 class="cta-title">Email verification</h1>
                                                                                    <div class="cta-desc">

                                                                                            <p>Please verify your email.
                                                                                                    <a href="{{url('/verifyemail/'.$email_token)}}">Verify</a></p>


                                                                                    </div>
                                                                            </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
myDomain                </table>
            </td>
        </tr>
    </table>
</body>
</html>


Webiondev123 left a reply on Send Bulk Email To Users

@DOUGLASAKULA - My mail is not being sent. Here is my code

//create user and save in DB
  protected function create(array $data)//get from form
    {
    if ($data['type'] == 'Y') {
      //query db for all user X
      $user = User::where("type","X")->get();

      //send email to all of them
      foreach ($user as $user_)
      {


        Mail::send('email', ['title' => 'New Seeker Registration', 'content' => 'A new seeker has just registered!'], function ($message)  use($user_)
         {

             $message->from('[email protected]', 'mydomain');
             $message->subject('New Seeker Registration');
             $message->to(user_->email); //[email protected] even hard coded doesnt work

      
      });

      }
  }
}

Webiondev123 started a new conversation Where Is The Default Password Reset View?

Hi

Whenever I reset password I get a email with a default view. Where is the default password reset view?

Thanks

24 Dec
6 months ago

Webiondev123 started a new conversation Send Bulk Email To Users

Hi.

This is my email message to user once user registers but I want to send to all users notifying that a user of type X has registered. How can I do this?

  Mail::send('email', ['title' => 'New Registration', 'content' => 'You have a new registration'], function ($message)  use ($data)
        {

            $message->subject('Registration Success');
            $message->to('[email protected]');

        });

Webiondev123 started a new conversation How To Localize Validation Fields?

I want to localise error messages for the following

  'name' => 'required|string|max:1000',
            'email' => 'required|string|email|max:255|unique:users',
            'password' => 'required|string|min:6|confirmed',
            'city'=>'required|string|max:255',
            'country'=>'required|string|max:255',
            'type'=>'required',
            'occupation'=>'required|string|max:255',
            'file' => 'required | image|max:1000',

I tried changing in view and also here by this __('validation.email') etc. but does not work

Webiondev123 left a reply on Set Locale For Session

Step 5 is not needed for me as language persists after page change without step 5...

Webiondev123 started a new conversation Set Locale For Session

Hi. I am trying to set locale for the whole session when user clicks on the language type. But it is only working for current page where user clicks. When user goes to another page the default locale is set.

my set locale function

  public function french(){


      \App::setLocale('fr');//how to set it for whole session?
      return view('/welcome');
  }

works for current page only.

23 Dec
6 months ago

Webiondev123 started a new conversation Download Database Tables From Linode?

Hi

How can I download the database tables from linode ssh?

20 Sep
9 months ago

Webiondev123 started a new conversation Help Me Validate My Form Pls

I want to validate my form once it submits to this function. Is this correct way?


  public function report_write(){

      
        //validate
    Validator::make($data, [
            'name' => 'required|string|max:1000',
            'email' => 'required|string|email|max:255|unique:users',
            'password' => 'required|string|min:6|confirmed',
            'city'=>'required|string|max:255',
            'country'=>'required|string|max:255',
            'type'=>'required',
            'occupation'=>'required|string|max:255',
            'file' => 'required | image|max:1000',

        ]);    

        //save
    $newUser= User::create([
            'name' => $data['name'],
            'email' => $data['email'],
            'password' => bcrypt($data['password']),
            'city'=> $data['city'],
            'country'=>$data['country'],
            'type'=>$data['type'],
            'occupation'=>$data['occupation'],
          
       
            'file'=>$file,
            
        ]); 

        return redirect()->back()->with('message', 'report submitted');
    
            }
10 Sep
9 months ago

Webiondev123 left a reply on Autoload.php Fail

<?php



define('LARAVEL_START', microtime(true));



require __DIR__.'/../vendor/autoload.php';



$app = require_once __DIR__.'/../bootstrap/app.php';



$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);

$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);

$response->send();

$kernel->terminate($request, $response);



Webiondev123 left a reply on Autoload.php Fail

@nadj i am now having another problem

when I fix path in localhost as

require __DIR__.'/vendor/autoload.php';

It gives error in production saying autoload not found. but when I revert back to

require __DIR__.'/../vendor/autoload.php';

localhost gives the same error

07 Sep
9 months ago

Webiondev123 left a reply on Autoload.php Fail

in C:\wamp\www\fundtheneedy

Webiondev123 left a reply on Autoload.php Fail

I ran dump command


c:\wamp64\www\fundtheneedy>composer dump-autoload
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
Discovered Package: fideloper/proxy
Discovered Package: intervention/image
Discovered Package: khill/lavacharts
Discovered Package: laravel/scout
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Package manifest generated successfully.

still same problem

Webiondev123 left a reply on Autoload.php Fail

yes i did... composer install composer update

Webiondev123 started a new conversation Autoload.php Fail

I have tried everything

still doesnt work

my autoload.php file in vendor folder contains

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit2ae5c5c1e631de0cea8c30d579d66b7e::getLoader();

WHen I try to load my website on localhost


( ! ) Warning: require(C:\wamp\www\fundtheneedy/../vendor/autoload.php): failed to open stream: No such file or directory in C:\wamp\www\fundtheneedy\index.php on line 24
Call Stack
#   Time    Memory  Function    Location
1   0.0009  364864  {main}( )   ...\index.php:0

( ! ) Fatal error: require(): Failed opening required 'C:\wamp\www\fundtheneedy/../vendor/autoload.php' (include_path='.;C:\php\pear') in C:\wamp\www\fundtheneedy\index.php on line 24
Call Stack
#   Time    Memory  Function    Location
1   0.0009  364864  {main}( )   ...\index.php:0
20 Jun
1 year ago

Webiondev123 started a new conversation I Need Your Expert Feedback For My Site

Hi

I need your expert feedback for my site. I want to market it

https://www.fundtheneedy.com

18 Jun
1 year ago

Webiondev123 left a reply on How To Delete Message For Only One Side?

Thanks that's an idea! Will try this

Webiondev123 left a reply on How To Delete Message For Only One Side?

@Cronix heres my current code

  public function deletemessage($id){

        $msg=Message::find($id);

        if($msg->delete()){
        $count=Message::where('to_', "=", auth()->user()->id)->whereNull('message.deleted_at')->where('status', '=', '0')->count();
        if($count>0)                  
            Session::put('count', ($count-1));
        return redirect()->back()->with('message', 'message deleted');

        }

    }

Webiondev123 left a reply on Insert Foreign Characters

I solved it. I was not using the utf8 for all related tables

Webiondev123 started a new conversation How To Delete Message For Only One Side?

I am using soft deletes but when I delete for a user the message is deleted for the other user as well. I want the message to be deleted only for the user who deletes it.

How can I achieve this?

Thanks

Webiondev123 started a new conversation Insert Foreign Characters

Hi

I am trying to insert a value to my name filed in a foreign language.

My code when post

    $ItemName_cn = addslashes(utf8_encode($_POST['ItemName_cn']));

My code when read

$ItemName_cn = str_replace('"', "&quot;", stripslashes(utf8_decode($item_row['ItemName_cn'])));

Database Name Field set to utf8_unicode_ci

But once insert its showing garbage

失落�??�?�??�??�?�?

What am I doing wrong?

Thanks

16 Jun
1 year ago

Webiondev123 started a new conversation How Can I Transfer Laravel App To Google Cloud Platform (GCP)?

I am completely new to GCP. Is there any way I can achieve this? I just want to migrate everything related to my webapp in laravel to GCP. Now I am using forge and linode.

13 Jun
1 year ago

Webiondev123 left a reply on How Can I Charge Any Credit/debit Card In The World?

@pardeepkumar @bobbybouwmann

Is there something like this where buyer only enter the credit card and my system after charging it shows him the receipt/success...I dont want the buyer to go through logging into paypal or something..

Webiondev123 started a new conversation How Can I Charge Any Credit/debit Card In The World?

How can I charge any credit/debit card in the world in checkout when user clicks pay in laravel?

Webiondev123 left a reply on Verification Email Not Being Sent

@rin4ik Ok Is my code wrong ...I already started queue in forge but still not coming

12 Jun
1 year ago

Webiondev123 started a new conversation Verification Email Not Being Sent

The database user table is inserted with the email token but I dont receive verification email. I only receive registration success email. Here is my code:

SendVerification.php

use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Mail;
use App\Mail\EmailVerification;

class SendVerificationEmail implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

    /**
     * Create a new job instance.
     *
     * @return void
     */
    protected $user;
    public function __construct($user)
    {
        $this->user = $user;
    }



    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        $email = new EmailVerification($this->user);
Mail::to($this->user->email)->send($email);
    }
}

Here is EmailVerification

<?php

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
use App/User;
class EmailVerification extends Mailable
{
    use Queueable, SerializesModels;

    /**
     * Create a new message instance.
     *
     * @return void
     */
    protected $user;
    public function __construct(User $user)
    {
         $this->user = $user;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        
    return $this->view('emailverify')->with([
'email_token' => $this->user->email_token,
]);
        
    }
}

Here is my route

Route::get('/verifyemail/{token}', 'Auth\[email protected]');

Here is my register ad verify methods

    public function register(Request $request)
{
        $this->validator($request->all())->validate();
        event(new Registered($user = $this->create($request->all())));
        dispatch(new SendVerificationEmail($user));
        return view('verification');
        }
        /**
        * Handle a registration request for the application.
        *
        * @param $token
        * @return \Illuminate\Http\Response
        */
        public function verify($token)
        {
        $user = User::where('email_token',$token)->first();
        $user->verified = 1;
        if($user->save()){
        return view('emailconfirm',['user'=>$user]);
        }

}