PHP code example of rymanalu / dusk-for-sentinel

1. Go to this page and download the library: Download rymanalu/dusk-for-sentinel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rymanalu / dusk-for-sentinel example snippets


use Rymanalu\DuskForSentinel\DuskForSentinelServiceProvider;

/**
 * Register any application services.
 *
 * @return void
 */
public function register()
{
    if ($this->app->environment('local', 'testing')) {
        $this->app->register(DuskForSentinelServiceProvider::class);
    }
}

$this->browse(function (Browser $browser) {
    $browser->loginAs(Sentinel::findById(1))
            ->visit('/home');
});