Changeset 92df8cd for app/Http/Controllers/PeopleController.php
- Timestamp:
- 02/11/24 18:29:24 (9 months ago)
- Branches:
- main
- Children:
- 7e9dadd
- Parents:
- d9c4096
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Controllers/PeopleController.php
rd9c4096 r92df8cd 34 34 ]); 35 35 } 36 function get_person($embg){37 $person = DB::select('SELECT * FROM people WHERE embg=:embg', ['embg' => $embg]);38 dd($person);39 return view('register-policeman', [40 'person' => $person[0] 41 ]);36 public function getPerson(Request $request) 37 { 38 $embg = $request->input('embg'); 39 $person = DB::select('SELECT * FROM people WHERE embg = :embg', ['embg' => $embg]); 40 41 return response()->json($person[0] ?? null); 42 42 } 43 43 }
Note:
See TracChangeset
for help on using the changeset viewer.