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