| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 24 | public function contactStore() |
||
| 25 | { |
||
| 26 | $validatedDate = $this->validate([ |
||
| 27 | 'name' => 'required|string|max:191', |
||
| 28 | 'phone_number' => 'required|max:50', |
||
| 29 | 'email' => 'required|email|unique:contacts,email', |
||
| 30 | 'budget' => 'required', |
||
| 31 | 'message' => 'nullable|string', |
||
| 32 | ]); |
||
| 33 | |||
| 34 | Contact::create($validatedDate); |
||
| 35 | |||
| 36 | $this->resetInputFields(); |
||
| 37 | $this->alert('success', 'Contact stored successfully.'); |
||
| 38 | } |
||
| 48 |