Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sarun Mungthanya
SpnPatch-Laravel
Commits
c873e083
Commit
c873e083
authored
Dec 13, 2024
by
Sarun Mungthanya
Browse files
issue search send patch
parent
fabb6bbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Livewire/Pages/SendPatch/SendPatchIndex.php
View file @
c873e083
...
@@ -57,8 +57,9 @@ class SendPatchIndex extends Component
...
@@ -57,8 +57,9 @@ class SendPatchIndex extends Component
->
withCount
([
'confServerPendding as NUMSERVER'
]);
->
withCount
([
'confServerPendding as NUMSERVER'
]);
if
(
$this
->
searchSelected
&&
$this
->
keyword
)
{
if
(
$this
->
searchSelected
&&
$this
->
keyword
)
{
$query
->
where
(
$this
->
searchSelected
,
'LIKE'
,
$this
->
keyword
.
'%'
);
$query
->
where
(
$this
->
searchSelected
,
'LIKE'
,
'%'
.
$this
->
keyword
.
'%'
);
}
}
// dd( $query->where($this->searchSelected, 'LIKE', $this->keyword . '%'));
$query
->
orderBy
(
'PID'
,
'DESC'
);
$query
->
orderBy
(
'PID'
,
'DESC'
);
$results
=
$query
->
paginate
(
$this
->
perPage
);
$results
=
$query
->
paginate
(
$this
->
perPage
);
$this
->
totalItems
=
$results
->
total
();
$this
->
totalItems
=
$results
->
total
();
...
...
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