main
Last change
on this file since 6b10b67 was 6b10b67, checked in by bube-ristovska <ristovska725@…>, 11 months ago |
Connected database
|
-
Property mode
set to
100644
|
File size:
483 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | namespace App\Http\Controllers;
|
---|
4 |
|
---|
5 | use App\Models\Policeman;
|
---|
6 | use Illuminate\Http\Request;
|
---|
7 | use Illuminate\Support\Facades\DB;
|
---|
8 |
|
---|
9 | class OfficerController extends Controller
|
---|
10 | {
|
---|
11 | function employees()
|
---|
12 | {
|
---|
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');
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.