Changeset d9c4096 for app/Http/Controllers/PeopleController.php
- Timestamp:
- 02/10/24 17:58:54 (9 months ago)
- Branches:
- main
- Children:
- 92df8cd
- Parents:
- 6dec591
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Controllers/PeopleController.php
r6dec591 rd9c4096 5 5 use Illuminate\Http\Request; 6 6 use Illuminate\Support\Facades\DB; 7 use Illuminate\Support\Facades\Session; 7 8 8 9 class PeopleController extends Controller 9 10 { 10 11 function filter(){ 12 if(Session::get('pe_id') == null) { 13 return view('login'); 14 } 11 15 $peoples = DB::select('select * from people;'); 12 16 … … 16 20 } 17 21 function filter_post(){ 22 if(Session::get('pe_id') == null) { 23 return view('login'); 24 } 18 25 $credentials = request()->validate([ 19 26 'embg' => 'required' … … 27 34 ]); 28 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 ]); 42 } 29 43 }
Note:
See TracChangeset
for help on using the changeset viewer.