| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 41 | public function sendTextMessage(Request $request) |
||
| 42 | { |
||
| 43 | $this->validate($request, [ |
||
| 44 | 'telephone' => 'required' |
||
| 45 | ]); |
||
| 46 | |||
| 47 | $number = $request->input('number'); |
||
| 48 | $message = 'Testing Clockwork SMS #LaravelHackathonStarter'; |
||
| 49 | |||
| 50 | $response = $this->client->sendMessage($this->message); |
||
| 51 | dd($response); |
||
| 52 | |||
| 53 | //return redirect()->back()->with('info','Your Message has been sent successfully'); |
||
| 54 | } |
||
| 55 | } |
||
| 56 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: