Changeset 3c89e27 for app/Http/Controllers/PeopleController.php
- Timestamp:
- 08/26/24 16:17:04 (4 months ago)
- Branches:
- main
- Parents:
- 5372778
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Controllers/PeopleController.php
r5372778 r3c89e27 13 13 return view('login'); 14 14 } 15 $peoples = DB::select('select * from people;'); 16 15 $peoples = DB::table('people')->get(); 17 16 return view('filter', [ 18 17 'peoples' => $peoples … … 75 74 { 76 75 $embg = $request->input('embg'); 77 $person = DB:: select('SELECT * FROM people WHERE embg = :embg', ['embg' => $embg]);78 76 $person = DB::table('people') 77 ->where('embg', $embg)->get(); 79 78 return response()->json($person[0] ?? null); 80 79 }
Note:
See TracChangeset
for help on using the changeset viewer.