Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
71a5f393
Commit
71a5f393
authored
Sep 17, 2016
by
Micheal Mand
Committed by
Nicolas Widart
Sep 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow the User presenter to be configurable (#249)
parent
6ee967f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
config.php
Modules/User/Config/config.php
+6
-0
User.php
Modules/User/Entities/Sentinel/User.php
+1
-0
config.php
config/asgard/user/config.php
+6
-0
No files found.
Modules/User/Config/config.php
View file @
71a5f393
...
...
@@ -29,6 +29,12 @@ return [
| only supported by the Sentinel user driver
*/
'login-columns'
=>
[
'email'
],
/*
|--------------------------------------------------------------------------
| Define a class that will handle User presentation
|--------------------------------------------------------------------------
*/
'presenter'
=>
\Modules\User\Presenters\UserPresenter
::
class
,
/*
|--------------------------------------------------------------------------
| Allow anonymous user registration
...
...
Modules/User/Entities/Sentinel/User.php
View file @
71a5f393
...
...
@@ -32,6 +32,7 @@ class User extends EloquentUser implements UserInterface
{
$this
->
loginNames
=
config
(
'asgard.user.config.login-columns'
);
$this
->
fillable
=
config
(
'asgard.user.config.fillable'
);
$this
->
presenter
=
config
(
'asgard.user.config.presenter'
);
parent
::
__construct
(
$attributes
);
}
...
...
config/asgard/user/config.php
View file @
71a5f393
...
...
@@ -29,6 +29,12 @@ return [
| only supported by the Sentinel user driver
*/
'login-columns'
=>
[
'email'
],
/*
|--------------------------------------------------------------------------
| Define a class that will handle User presentation
|--------------------------------------------------------------------------
*/
'presenter'
=>
\Modules\User\Presenters\UserPresenter
::
class
,
/*
|--------------------------------------------------------------------------
| Allow anonymous user registration
...
...
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