- Timestamp:
- 01/29/24 13:15:08 (10 months ago)
- Branches:
- main
- Children:
- cf84baa
- Parents:
- 75151c6
- Location:
- app
- Files:
-
- 13 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Controllers/CrimeCaseController.php
r75151c6 r6b10b67 10 10 return view('cases'); 11 11 } 12 function case(){ 13 return view('case'); 14 } 12 15 } -
app/Http/Controllers/OfficerController.php
r75151c6 r6b10b67 3 3 namespace App\Http\Controllers; 4 4 5 use App\Models\Policeman; 5 6 use Illuminate\Http\Request; 7 use Illuminate\Support\Facades\DB; 6 8 7 9 class OfficerController extends Controller … … 9 11 function employees() 10 12 { 11 return view('employees'); 13 $results = DB::select('select * from policeman join people on policeman.pe_id = people.pe_id;'); 14 return view('employees', [ 15 'employees' => $results 16 ]); 17 } 18 19 function register() 20 { 21 return view('register-policeman'); 12 22 } 13 23 }
Note:
See TracChangeset
for help on using the changeset viewer.