feat: add app and database modules
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Observers;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class UserObserver
|
||||
{
|
||||
public function creating(User $user)
|
||||
{
|
||||
// $user->created_by = Auth::id();
|
||||
}
|
||||
|
||||
public function updating(User $user)
|
||||
{
|
||||
// $user->updated_by = Auth::id();
|
||||
}
|
||||
|
||||
public function deleting(User $user)
|
||||
{
|
||||
// $user->updated_by = Auth::id();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user