Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Last active Aug 10, 2021
Embed
What would you like to do?
<?php
Route::get("/ban-user", function () {
$user = \App\Models\User::first();
return tap($user)->ban([
"comment" => "Mala conducta",
"expired_at" => "+1 month",
]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment