classes/Models/Admin.php
public function sendUpdateEmail()
    {
        // Prepare data for mail
        $admin = app('decoy.user');
        $email = [
            'editor_first_name' => $admin->first_name,
            'editor_last_name' => $admin->last_name,
            'first_name' =>request('first_name'),
            'last_name' =>request('last_name'),
            'email' => request('email'),
            'password' =>request('password'),
            'url' => Request::root().'/'.Config::get('decoy.core.dir'),
            'root' => Request::root(),
        ];

        // Send the email
        Mail::send('decoy::emails.update', $email, function ($m) use ($email) {
            $m->to($email['email'], $email['first_name'].' '.$email['last_name']);
            $m->subject('Your '.Decoy::site().' admin account info has been updated');
        });
    }
public function sendUpdateEmail()
    {
        // Prepare data for mail
        $admin = app('decoy.user');
        $email = [
            'editor_first_name' => $admin->first_name,
            'editor_last_name' => $admin->last_name,
            'first_name' =>request('first_name'),
            'last_name' =>request('last_name'),
            'email' => request('email'),
            'password' =>request('password'),
            'url' => Request::root().'/'.Config::get('decoy.core.dir'),
            'root' => Request::root(),
        ];

        // Send the email
        Mail::send('decoy::emails.update', $email, function ($m) use ($email) {
            $m->to($email['email'], $email['first_name'].' '.$email['last_name']);
            $m->subject('Your '.Decoy::site().' admin account info has been updated');
        });
    }
public function sendUpdateEmail ( ) { // Prepare data for mail $ admin = app ( 'decoy.user' ) ; $ email = [ 'editor_first_name' => $ admin -> first_name , 'editor_last_name' => $ admin -> last_name , 'first_name' => request ( 'first_name' ) , 'last_name' => request ( 'last_name' ) , 'email' => request ( 'email' ) , 'password' => request ( 'password' ) , 'url' => Request :: root ( ) . '/' . Config :: get ( 'decoy.core.dir' ) , 'root' => Request :: root ( ) , ] ; // Send the email Mail :: send ( 'decoy::emails.update' , $ email , function ( $ m ) use ( $ email ) { $ m -> to ( $ email [ 'email' ] , $ email [ 'first_name' ] . ' ' . $ email [ 'last_name' ] ) ; $ m -> subject ( 'Your ' . Decoy :: site ( ) . ' admin account info has been updated' ) ; } ) ; }
Send update email

@return void
Send update email