Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
db1f110f
Commit
db1f110f
authored
Mar 25, 2022
by
alissonalbuquerque
Browse files
add DisciplinaQuery
parent
16480574
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Queries/DisciplinaQuery.php
0 → 100644
View file @
db1f110f
<?php
namespace
App\Queries
;
use
App\Models\Disciplina
;
use
App\Queries\Query
;
class
DisciplinaQuery
extends
Query
{
public
function
__construct
(
$init
=
[])
{
$this
->
query
=
Disciplina
::
where
(
$init
);
}
/**
* @param integer|string $curso_id
* @param string $expression
* @return Builder
*/
public
function
whereCursoId
(
$curso_id
,
string
$expression
=
'='
)
{
$this
->
query
->
where
(
'curso_id'
,
$expression
,
$curso_id
);
return
$this
->
query
;
}
}
\ No newline at end of file
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