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

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

Added querries half done

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