source:
app/Http/Controllers/OfficerController.php@
cf84baa
Last change on this file since cf84baa was cf84baa, checked in by , 9 months ago | |
---|---|
|
|
File size: 532 bytes |
Rev | Line | |
---|---|---|
[75151c6] | 1 | <?php |
2 | ||
3 | namespace App\Http\Controllers; | |
4 | ||
[6b10b67] | 5 | use App\Models\Policeman; |
[cf84baa] | 6 | use Illuminate\Contracts\Auth\Authenticatable; |
[75151c6] | 7 | use Illuminate\Http\Request; |
[6b10b67] | 8 | use Illuminate\Support\Facades\DB; |
[75151c6] | 9 | |
10 | class OfficerController extends Controller | |
11 | { | |
12 | function employees() | |
13 | { | |
[6b10b67] | 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'); | |
[75151c6] | 23 | } |
[cf84baa] | 24 | |
25 | ||
[75151c6] | 26 | } |
Note:
See TracBrowser
for help on using the repository browser.