Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-Server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
李帅
2022-03-16 19:31:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b61d4e4b9cfaa733135da54bd79d1bc46af7d51e
b61d4e4b
1 parent
7a41ef0b
1.新增setting表.
2.后台新增setting功能.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
app/Admin/Controllers/OnePoemController.php
app/Admin/Controllers/OnePoemController.php
View file @
b61d4e4
...
...
@@ -129,8 +129,13 @@ class OnePoemController extends AdminController
$grid
->
filter
(
function
(
Grid\Filter
$filter
)
{
$filter
->
where
(
'author_id'
,
function
(
$query
){
$author
=
Author
::
query
()
->
where
(
'name'
,
'like'
,
"%
{
$this
->
input
}
%"
)
->
get
()
->
pluck
(
'id'
);
$poetry
=
Poetry
::
query
()
->
whereIn
(
'author_id'
,
$author
)
->
get
()
->
pluck
(
'id'
);
$query
->
whereIn
(
'poetry_id'
,
$poetry
);
})
->
width
(
3
);
$filter
->
like
(
'poetry.name'
)
->
width
(
3
);
$filter
->
like
(
'stanza'
)
->
width
(
5
);
$filter
->
like
(
'stanza'
)
->
width
(
4
);
$filter
->
panel
();
});
...
...
Please
register
or
login
to post a comment