| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class FollowupsController extends Controller |
||
| 13 | { |
||
| 14 | public function __construct() |
||
| 15 | { |
||
| 16 | $this->middleware('auth'); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function store(Request $request) |
||
| 20 | { |
||
| 21 | $followup = new Followup($request->all()); |
||
| 22 | |||
| 23 | $followup->createdBy()->associate(Auth::user()); |
||
| 24 | $followup->updatedBy()->associate(Auth::user()); |
||
| 25 | $followup->enquiry_id = $request->enquiry_id; |
||
| 26 | $followup->save(); |
||
| 27 | |||
| 28 | flash()->success('Follow Up was successfully created'); |
||
| 29 | |||
| 30 | return redirect (action('EnquiriesController@show', ['id' => $request->enquiry_id])); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function update($id, Request $request) |
||
| 44 | } |
||
| 45 | } |