main
Last change
on this file since 6dec591 was cf84baa, checked in by bube-ristovska <ristovska725@…>, 9 months ago |
Added querries half done
|
-
Property mode
set to
100644
|
File size:
532 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 |
|
---|
10 | class OfficerController extends Controller
|
---|
11 | {
|
---|
12 | function employees()
|
---|
13 | {
|
---|
14 | $results = DB::select('select * from policeman join people on policeman.pe_id = people.pe_id;');
|
---|
15 | return view('employees', [
|
---|
16 | 'employees' => $results
|
---|
17 | ]);
|
---|
18 | }
|
---|
19 |
|
---|
20 | function register()
|
---|
21 | {
|
---|
22 | return view('register-policeman');
|
---|
23 | }
|
---|
24 |
|
---|
25 |
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.