main
Last change
on this file since 6dec591 was 6dec591, checked in by bube-ristovska <ristovska725@…>, 9 months ago |
Cases listing
|
-
Property mode
set to
100644
|
File size:
587 bytes
|
Rev | Line | |
---|
[75151c6] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | namespace App\Http\Controllers;
|
---|
| 4 |
|
---|
| 5 | use Illuminate\Http\Request;
|
---|
[6dec591] | 6 | use Illuminate\Support\Facades\DB;
|
---|
| 7 | use Illuminate\Support\Facades\Session;
|
---|
[75151c6] | 8 | class CrimeCaseController extends Controller
|
---|
| 9 | {
|
---|
| 10 | function cases(){
|
---|
[6dec591] | 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 |
|
---|
[75151c6] | 19 | }
|
---|
[6b10b67] | 20 | function case(){
|
---|
| 21 | return view('case');
|
---|
| 22 | }
|
---|
[75151c6] | 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.