Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mcoil.corals.io/app/Http/Controllers/Driver/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mcoil.corals.io/app/Http/Controllers/Driver/SettingController.php
<?php

namespace App\Http\Controllers\Driver;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Shop\Customers\Customer;
use Illuminate\Support\Facades\Auth;

class SettingController extends Controller
{

    public function index(){
    	return view('driver.settings.setting');
    }

    public function change_password(Request $request){

    	$user_id  = Auth::user()->id;
    	$customer_data = Customer::find($user_id);

    	if (\Hash::check($request->current_password, $customer_data->password )) { 
    		$customer_data->password = \Hash::make($request->new_password);
    		$customer_data->save();
    		return redirect()->route('driver.settings')->with('message','Password changed Successfully');
    	} else {
			return redirect()->route('driver.settings')->with('error','Password does not match');
		}

    	echo $request->current_password; die();
    }
}

Spamworldpro Mini