restore composer.json, add mysqli extension
This commit is contained in:
34
app/Jobs/Dashboard/User/Update.php
Executable file
34
app/Jobs/Dashboard/User/Update.php
Executable file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Jobs\Dashboard\User;
|
||||
|
||||
use App\Models\Staff;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Arr;
|
||||
use App\Http\Requests\Dashboard\User\Update as Request;
|
||||
|
||||
class Update
|
||||
{
|
||||
// protected $attr;
|
||||
protected $staff;
|
||||
protected $request;
|
||||
|
||||
/**
|
||||
* Update constructor.
|
||||
* @param User $staff
|
||||
* @param Request $request
|
||||
*/
|
||||
public function __construct(Staff $staff, Request $request)
|
||||
{
|
||||
$this->staff = $staff;
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
return $this->staff->update($this->request->validated());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user