for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sausin\Signere;
use Closure;
class Signere
{
/**
* The callback that should be used to authenticate the package users.
*
* @var \Closure
*/
public static $authUsing;
* Determine if the given request can access the paths.
* @param \Illuminate\Http\Request $request
* @return bool
public static function check($request)
return (static::$authUsing ?: function () {
return app()->environment('local');
})($request);
}
* Set the callback that should be used to authenticate package users.
* @param \Closure $callback
* @return static
public static function auth(Closure $callback)
static::$authUsing = $callback;
return new static;