source: app/Http/Controllers/CrimeCaseController.php@ 6dec591

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
Line 
1<?php
2
3namespace App\Http\Controllers;
4
5use Illuminate\Http\Request;
6use Illuminate\Support\Facades\DB;
7use Illuminate\Support\Facades\Session;
8class CrimeCaseController extends Controller
9{
10 function 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
19 }
20 function case(){
21 return view('case');
22 }
23}
Note: See TracBrowser for help on using the repository browser.