2017 © Pedro Peláez
 

library postern

PHP class that mainly developed for Laravel to sign in to user page easily in development environment.

image

sukohi/postern

PHP class that mainly developed for Laravel to sign in to user page easily in development environment.

  • Wednesday, April 11, 2018
  • by Sukohi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 49 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Postern

PHP class that mainly developed for Laravel to sign in to user page easily in development environment.
(This is for Laravel 5+. For Laravel 4.2), (*1)

Installation

Execute composer command., (*2)

composer require sukohi/postern:2.*

If your Laravel's version is 5.5+, the installation is done!, (*3)

Register the service provider in app.php, (*4)

'providers' => [
    ...Others...,  
    Sukohi\Postern\PosternServiceProvider::class,
]

Also alias, (*5)

'aliases' => [
    ...Others...,  
    'Postern'   => Sukohi\Postern\Facades\Postern::class
]

Usage

Minimal Way (in View), (*6)

<form method="POST" action="http://example.com" name="form_name">
    <input name="input_email_name" type="text">
    <input name="input_password_name" type="password">
</form>

{!! \Postern::form('form_name')
        ->credentials('Link Text', ['input_email_name' => 'admin@example.com', 'input_password_name' => 'admin'])
        ->render()
!!}

Other Way (in View), (*7)

{!! \Postern::form('form_name')
        ->credentials('Admin Login', ['email' => 'admin@example.com', 'password' => 'admin'])
        ->credentials('User Login', ['email' => 'user@example.com', 'password' => 'user'])
        ->localOnly($boolean = true)    // optional
        ->render()
!!}
  • You can repeatedly use credentials().
  • If you'd like to use this package in production environment, set localOnly(false).

License

This package is licensed under the MIT License., (*8)

Copyright 2015 Sukohi Kuhoh, (*9)

The Versions

11/04 2018

2.0.x-dev

2.0.9999999.9999999-dev

PHP class that mainly developed for Laravel to sign in to user page easily in development environment.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

11/04 2018

dev-master

9999999-dev

PHP class that mainly developed for Laravel to sign in to user page easily in development environment.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

11/04 2018

2.0.5

2.0.5.0

PHP class that mainly developed for Laravel to sign in to user page easily in development environment.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

11/04 2018

2.0.4

2.0.4.0

PHP class that mainly developed for Laravel to sign in to user page easily in development environment.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

10/05 2017

2.0.3

2.0.3.0

PHP class that mainly developed for Laravel to sign in to user page easily in development environment.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

19/08 2015

1.0.x-dev

1.0.9999999.9999999-dev

  Sources   Download

The Requires

 

by Avatar Sukohi

06/08 2015

2.0.2

2.0.2.0

PHP class that mainly developed for Laravel to sign in to user page easily in development environment.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

06/08 2015

2.0.1

2.0.1.0

PHP class that mainly developed for Laravel to sign in to user page easily in development environment.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

10/03 2015

1.0.0

1.0.0.0

  Sources   Download

The Requires

 

by Avatar Sukohi

10/03 2015

2.0.0

2.0.0.0

  Sources   Download

The Requires

 

by Avatar Sukohi