refactored jobs
This commit is contained in:
parent
ddd88665fb
commit
207068a441
6 changed files with 9 additions and 30 deletions
2
.kdev4/COM431_serverside_development.kdev4
Normal file
2
.kdev4/COM431_serverside_development.kdev4
Normal file
|
@ -0,0 +1,2 @@
|
|||
[Project]
|
||||
VersionControlSupport=kdevgit
|
|
@ -1,25 +0,0 @@
|
|||
[Buildset]
|
||||
BuildItems=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x02\x00\x00\x00\x0b\x00\x00\x00\x00\x01\x00\x00\x00\x16\x00p\x00r\x00o\x00j\x00e\x00c\x00t\x00_\x00o\x00n\x00e\x00\x00\x00\x0b\x00\x00\x00\x00\x04\x00\x00\x00\x16\x00p\x00r\x00o\x00j\x00e\x00c\x00t\x00_\x00o\x00n\x00e\x00\x00\x00\x12\x00r\x00e\x00s\x00o\x00u\x00r\x00c\x00e\x00s\x00\x00\x00\n\x00v\x00i\x00e\x00w\x00s\x00\x00\x00\x14\x00C\x00o\x00m\x00p\x00o\x00n\x00e\x00n\x00t\x00s)
|
||||
|
||||
[Launch]
|
||||
Launch Configurations=Launch Configuration 0
|
||||
|
||||
[Launch][Launch Configuration 0]
|
||||
Configured Launch Modes=execute
|
||||
Configured Launchers=scriptAppLauncher
|
||||
Name=New Script Application Launcher
|
||||
Type=Script Application
|
||||
|
||||
[Launch][Launch Configuration 0][Data]
|
||||
Arguments=
|
||||
EnvironmentGroup=
|
||||
Executable=file:///home/xander/Documents/Uni/Y2/Sem 2/COM431/laravel_projects/project_one/run.sh
|
||||
Execute on Remote Host=false
|
||||
Interpreter=bash
|
||||
Output Filtering Mode=2
|
||||
Remote Host=
|
||||
Run current file=false
|
||||
Working Directory=
|
||||
|
||||
[Project]
|
||||
VersionControlSupport=kdevgit
|
4
COM431_serverside_development.kdev4
Normal file
4
COM431_serverside_development.kdev4
Normal file
|
@ -0,0 +1,4 @@
|
|||
[Project]
|
||||
CreatedFrom=
|
||||
Manager=KDevGenericManager
|
||||
Name=COM431_serverside_development
|
|
@ -9,7 +9,7 @@ Route::get('/', function () {
|
|||
|
||||
Route::get('/jobs', function () {
|
||||
$jobs = Job::orderBy('salary','desc')->paginate(5);
|
||||
return view('jobs', [
|
||||
return view('jobs/index', [
|
||||
'jobs' => $jobs
|
||||
]);
|
||||
});
|
||||
|
@ -17,18 +17,16 @@ Route::get('/jobs', function () {
|
|||
// return view('jobs', ['jobs' => $jobs]);
|
||||
// });
|
||||
|
||||
Route::get('/contact', function() {
|
||||
Route::get('/contact', function () {
|
||||
return view('contact');
|
||||
});
|
||||
Route::get('/jobs/{id}', function ($id) {
|
||||
$job = Job::find($id);
|
||||
|
||||
return view('job', ['job' => $job]);
|
||||
return view('jobs/show', ['job' => $job]);
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue