Download the PHP package sukohi/postern without Composer
On this page you can find all versions of the php package sukohi/postern. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sukohi/postern
More information about sukohi/postern
Files in sukohi/postern
Download sukohi/postern
More information about sukohi/postern
Files in sukohi/postern
Vendor sukohi
Package postern
Short Description PHP class that mainly developed for Laravel to sign in to user page easily in development environment.
License MIT
Package postern
Short Description PHP class that mainly developed for Laravel to sign in to user page easily in development environment.
License MIT
Please rate this library. Is it a good library?
Informations about the package postern
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)
Installation
Execute composer command.
composer require sukohi/postern:2.*
If your Laravel's version is 5.5+, the installation is done!
Register the service provider in app.php
'providers' => [
...Others...,
Sukohi\Postern\PosternServiceProvider::class,
]
Also alias
'aliases' => [
...Others...,
'Postern' => Sukohi\Postern\Facades\Postern::class
]
Usage
Minimal Way (in View)
<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' => '[email protected]', 'input_password_name' => 'admin'])
->render()
!!}
Other Way (in View)
{!! \Postern::form('form_name')
->credentials('Admin Login', ['email' => '[email protected]', 'password' => 'admin'])
->credentials('User Login', ['email' => '[email protected]', '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.
Copyright 2015 Sukohi Kuhoh
All versions of postern with dependencies
PHP Build Version
Package Version
Requires
laravel/framework Version
~5.0
The package sukohi/postern contains the following files
Loading the files please wait ...