Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sipeka
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Siti Aisah
sipeka
Commits
4f9635b0
Commit
4f9635b0
authored
Nov 26, 2024
by
Triyah Fatmawati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add lokasi file EC dan nomor surat di API SAKU
parent
82437923
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
app/Http/Controllers/Api/ApiSakuController.php
+5
-2
No files found.
app/Http/Controllers/Api/ApiSakuController.php
View file @
4f9635b0
...
@@ -17,7 +17,8 @@ public function index($tahun){
...
@@ -17,7 +17,8 @@ public function index($tahun){
->
whereHas
(
'penelaah'
,
function
(
$query
)
use
(
$tahun
)
{
->
whereHas
(
'penelaah'
,
function
(
$query
)
use
(
$tahun
)
{
$query
->
where
(
'tahun'
,
$tahun
);
$query
->
where
(
'tahun'
,
$tahun
);
})
})
->
orderBy
(
'nip'
)
->
orderBy
(
'nip'
,
'asc'
)
->
orderBy
(
'created_at'
,
'desc'
)
->
get
();
->
get
();
if
(
$penelaah
){
if
(
$penelaah
){
...
@@ -33,7 +34,9 @@ public function index($tahun){
...
@@ -33,7 +34,9 @@ public function index($tahun){
'kode_kategori'
=>
$pen
->
penelaah
->
kategori
->
kode_kategori
,
'kode_kategori'
=>
$pen
->
penelaah
->
kategori
->
kode_kategori
,
'nama_kategori'
=>
$pen
->
penelaah
->
kategori
->
nama_kategori
,
'nama_kategori'
=>
$pen
->
penelaah
->
kategori
->
nama_kategori
,
// 'poin_saku' => $pen->penelaah->kategori->poin_saku,
// 'poin_saku' => $pen->penelaah->kategori->poin_saku,
'tahun'
=>
$pen
->
penelaah
->
tahun
'tahun'
=>
$pen
->
penelaah
->
tahun
,
'no_sk'
=>
$pen
->
penelaah
->
no_sk
,
'file_ec'
=>
'https://sipeka.unesa.ac.id/sipeka/file/'
.
$pen
->
penelaah
->
file_ec
];
];
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment