Changeset 6b10b67 for app


Ignore:
Timestamp:
01/29/24 13:15:08 (10 months ago)
Author:
bube-ristovska <ristovska725@…>
Branches:
main
Children:
cf84baa
Parents:
75151c6
Message:

Connected database

Location:
app
Files:
13 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • app/Http/Controllers/CrimeCaseController.php

    r75151c6 r6b10b67  
    1010        return view('cases');
    1111    }
     12    function case(){
     13        return view('case');
     14    }
    1215}
  • app/Http/Controllers/OfficerController.php

    r75151c6 r6b10b67  
    33namespace App\Http\Controllers;
    44
     5use App\Models\Policeman;
    56use Illuminate\Http\Request;
     7use Illuminate\Support\Facades\DB;
    68
    79class OfficerController extends Controller
     
    911    function employees()
    1012    {
    11         return view('employees');
     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');
    1222    }
    1323}
Note: See TracChangeset for help on using the changeset viewer.