source: app/Http/Controllers/OfficerController.php@ cf84baa

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

Added querries half done

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