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
3 years ago
by
alissonalbuquerque
Browse files
Options
Download
Email Patches
Plain Diff
add attributeName function
parent
062d3d34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/Models/User.php
+7
-0
app/Models/User.php
with
7 additions
and
0 deletions
+7
-0
app/Models/User.php
View file @
32e10e2a
...
...
@@ -121,6 +121,13 @@ class User extends Authenticatable
return
$this
->
type
===
self
::
TYPE_COORDINATOR
;
}
/**
* @return string
*/
public
function
attributeName
(
string
$attribute
)
{
return
$this
->
getTable
()
.
'-'
.
$attribute
;
}
/**
* @return string
*/
...
...
This diff is collapsed.
Click to expand it.
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