source: app/Http/Controllers/OfficerController.php@ 6b10b67

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

Connected database

  • Property mode set to 100644
File size: 483 bytes
Line 
1<?php
2
3namespace App\Http\Controllers;
4
5use App\Models\Policeman;
6use Illuminate\Http\Request;
7use Illuminate\Support\Facades\DB;
8
9class 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.