source: app/Http/Controllers/OfficerController.php@ d9c4096

main
Last change on this file since d9c4096 was d9c4096, checked in by bube-ristovska <ristovska725@…>, 9 months ago

Bug with embg

  • Property mode set to 100644
File size: 660 bytes
Line 
1<?php
2
3namespace App\Http\Controllers;
4
5use App\Models\Policeman;
6use Illuminate\Contracts\Auth\Authenticatable;
7use Illuminate\Http\Request;
8use Illuminate\Support\Facades\DB;
9use Illuminate\Support\Facades\Session;
10
11class OfficerController extends Controller
12{
13 function employees()
14 {
15 if(Session::get('pe_id') == null) {
16 return view('login');
17 }
18 $results = DB::select('select * from policeman join people on policeman.pe_id = people.pe_id;');
19 return view('employees', [
20 'employees' => $results
21 ]);
22 }
23
24 function register()
25 {
26 return view('register-policeman');
27 }
28
29
30}
Note: See TracBrowser for help on using the repository browser.