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
32e10e2a
Commit
32e10e2a
authored
Mar 28, 2022
by
alissonalbuquerque
Browse files
add attributeName function
parent
062d3d34
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Models/User.php
View file @
32e10e2a
...
@@ -121,6 +121,13 @@ class User extends Authenticatable
...
@@ -121,6 +121,13 @@ class User extends Authenticatable
return
$this
->
type
===
self
::
TYPE_COORDINATOR
;
return
$this
->
type
===
self
::
TYPE_COORDINATOR
;
}
}
/**
* @return string
*/
public
function
attributeName
(
string
$attribute
)
{
return
$this
->
getTable
()
.
'-'
.
$attribute
;
}
/**
/**
* @return string
* @return string
*/
*/
...
...
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