Understanding Authentication

Peddle loads it's own auth, so that no other part of your app is affected. You can configure various parts of this, by going to config/peddle.php and finding the auth section.

Notable things to configure:

  • The URL users are redirected to, after logging in or registering
  • Whether or not users must verify their email addresses
  • How password resets work

You don't have to change any of these, but they're there to make Peddle work exactly like you want it to.

If you'd like to use Peddle's auth system as the default for your app; add the following to your AppServiceProvider:

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
    public function register()

Alternatively, you can use one of the bundled middleware to control which routes the Peddle auth is used on.

  • Gitstore\Peddle\Http\Middleware\RequireAuthenticatedMiddleware
  • Gitstore\Peddle\Http\Middleware\AllowGuestMiddleware