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

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
RevLine 
[75151c6]1<?php
2
3namespace App\Http\Controllers;
4
[6b10b67]5use App\Models\Policeman;
[75151c6]6use Illuminate\Http\Request;
[6b10b67]7use Illuminate\Support\Facades\DB;
[75151c6]8
9class OfficerController extends Controller
10{
11 function employees()
12 {
[6b10b67]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');
[75151c6]22 }
23}
Note: See TracBrowser for help on using the repository browser.