2017 © Pedro Peláez
 

library dusk-for-sentinel

Laravel Dusk for Sentinel.

image

rymanalu/dusk-for-sentinel

Laravel Dusk for Sentinel.

  • Monday, June 19, 2017
  • by rymanalu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 71 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 4 % Grown

The README.md

Laravel Dusk for Sentinel

Build Status, (*1)

This package override the routes that used by loginAs method in Laravel Dusk so it can be used for Laravel project who using the Sentinel package for the authentication, since the default implementation of that method is using the Laravel Authentication service., (*2)

Installation

First, install this package via the Composer package manager:, (*3)

composer require rymanalu/dusk-for-sentinel

It is fine if you already install the Laravel Dusk before or only install this package., (*4)

Register the Rymanalu\DuskForSentinel\DuskForSentinelServiceProvider in your AppServiceProvider. If you already register the Laravel\Dusk\DuskServiceProvider, just replace it to this provider:, (*5)

use Rymanalu\DuskForSentinel\DuskForSentinelServiceProvider;

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

You may run php artisan dusk:install if you haven't already publish the Dusk package or you can check out the documentation for further Dusk configuration., (*6)

Usage

So now, you can authenticate the Sentinel User object with the loginAs method in your browser test script:, (*7)

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

The Versions

19/06 2017

dev-master

9999999-dev

Laravel Dusk for Sentinel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Roni Yusuf Manalu

laravel authentication testing cartalyst sentinel dusk

02/06 2017

v1.0.0

1.0.0.0

Laravel Dusk for Sentinel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Roni Yusuf Manalu

laravel authentication testing cartalyst sentinel dusk

02/06 2017

v0.0.2

0.0.2.0

Laravel Dusk for Sentinel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Roni Yusuf Manalu

laravel authentication testing cartalyst sentinel dusk

02/06 2017

v0.0.1

0.0.1.0

Laravel Dusk for Sentinel.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Roni Yusuf Manalu

laravel authentication testing cartalyst sentinel dusk