main
Last change
on this file since d9c4096 was d9c4096, checked in by bube-ristovska <ristovska725@…>, 11 months ago |
Bug with embg
|
-
Property mode
set to
100644
|
File size:
660 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | namespace App\Http\Controllers;
|
---|
4 |
|
---|
5 | use App\Models\Policeman;
|
---|
6 | use Illuminate\Contracts\Auth\Authenticatable;
|
---|
7 | use Illuminate\Http\Request;
|
---|
8 | use Illuminate\Support\Facades\DB;
|
---|
9 | use Illuminate\Support\Facades\Session;
|
---|
10 |
|
---|
11 | class 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.