Changeset 6dec591 for app/Http/Controllers/CrimeCaseController.php
- Timestamp:
- 02/08/24 16:34:49 (11 months ago)
- Branches:
- main
- Children:
- d9c4096
- Parents:
- cf84baa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Controllers/CrimeCaseController.php
rcf84baa r6dec591 4 4 5 5 use Illuminate\Http\Request; 6 6 use Illuminate\Support\Facades\DB; 7 use Illuminate\Support\Facades\Session; 7 8 class CrimeCaseController extends Controller 8 9 { 9 10 function cases(){ 10 return view('cases'); 11 12 $police_station= DB::select('select * from police_station where pe_id=:pe_id;',['pe_id'=> Session::get('pe_id')]); 13 $cases = DB::select('select * from crime_case where p_id=:p_id;',['p_id'=> $police_station[0]->p_id]); 14 15 return view('cases', [ 16 'cases' => $cases 17 ]); 18 11 19 } 12 20 function case(){
Note:
See TracChangeset
for help on using the changeset viewer.