
Bandwagon is a Social Proof Package for Laravel
Laravel Bandwagon is a package to help promote social proof and legitimacy within your application. You can let users of your application know when others’ share, purchase, subscribe, or donate, for example:
Using blade and Vue, here’s how easy it is to feed data into the social proof component, which is then displayed in the user’s browser via polling:
use Bndwgn\Bandwagon\Bandwagon;
public function purchase(Request $request, Product $product)
{
$user = Auth::user();
// ... logic to charge a customer
Bandwagon::createEvent(
"Someone from ${$user->state}",
"Purchased the ${$product->displayName} plan",
$request->ip()
);
}
In your blade template (i.e., on your product page), you render the widget by using the provided blade component:
<x-bandwagon-renderer />
The package allows you to configure things like poll increments (how often to check for new events), how long to display events, and the age of valid events.
Bandwagon’s documentation is available on www.laravelbandwagon.com, and you can learn more about this package’s source code on GitHub.
Filed in: NewsNewsletter

Join 31,000+ others and never miss out on new tips, tutorials, and more.
Laravel Jobs

- Software Developer
-
Remote (US & Canada)
Alley - 😎 Laravel Developer
-
Remote
Jogg, Inc - Junior, Mid, and Senior Software Engineers. Laravel / Vue. Saint Petersburg, FL
-
Saint Petersburg, FL and Remote
ShineOn - Senior PHP Developer (Laravel)
-
Remote
The Interaction Design Foundation - Fullstack Laravel Engineer (Munich/Remote) 💻
-
Munich, Germany or Remote
AirLST GmbH
Laravel Jetstream v2 is released
Laravel Jetstream v2 is now released and available for all. This release features team member invitations, Inertia Au…
Convert any HTML element to Tailwind CSS with Windy (sponsor)
Windy is a browser extension for Tailwind CSS developers. The extension can copy any HTML element on any website and…