Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function store(Request $request) |
||
16 | { |
||
17 | $request->validate([ |
||
18 | 'name' => 'required', |
||
19 | 'email' => 'required', |
||
20 | 'password' => 'required', |
||
21 | ]); |
||
22 | |||
23 | $user = User::create([ |
||
24 | 'name' => $request->name, |
||
25 | 'email' => $request->email, |
||
26 | 'password' => $request->password, |
||
27 | ]); |
||
28 | |||
29 | return $user; |
||
30 | } |
||
31 | |||
55 |