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
caaafd92
Commit
caaafd92
authored
Oct 30, 2018
by
Silvio Gratani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverted previous commit
parent
ab55f37c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
module-service-provider.stub
...rkshop/Scaffold/Module/stubs/module-service-provider.stub
+0
-14
No files found.
Modules/Workshop/Scaffold/Module/stubs/module-service-provider.stub
View file @
caaafd92
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
namespace
Modules
\
$MODULE
$
\Providers
;
namespace
Modules
\
$MODULE
$
\Providers
;
use
Illuminate\Database\Eloquent\Factory
as
EloquentFactory
;
use
Illuminate\Support\ServiceProvider
;
use
Illuminate\Support\ServiceProvider
;
use
Modules\Core\Traits\CanPublishConfiguration
;
use
Modules\Core\Traits\CanPublishConfiguration
;
use
Modules\Core\Events\BuildingSidebar
;
use
Modules\Core\Events\BuildingSidebar
;
...
@@ -32,8 +31,6 @@ class $MODULE$ServiceProvider extends ServiceProvider
...
@@ -32,8 +31,6 @@ class $MODULE$ServiceProvider extends ServiceProvider
$this
->
app
[
'events'
]
->
listen
(
LoadingBackendTranslations
::
class
,
function
(
LoadingBackendTranslations
$event
)
{
$this
->
app
[
'events'
]
->
listen
(
LoadingBackendTranslations
::
class
,
function
(
LoadingBackendTranslations
$event
)
{
// append translations
// append translations
});
});
$this
->
registerEloquentFactoriesFrom
(
__DIR__
.
'/../Database/factories'
);
}
}
public
function
boot
()
public
function
boot
()
...
@@ -57,15 +54,4 @@ class $MODULE$ServiceProvider extends ServiceProvider
...
@@ -57,15 +54,4 @@ class $MODULE$ServiceProvider extends ServiceProvider
{
{
// add bindings
// add bindings
}
}
/**
* Register factories.
*
* @param string $path
* @return void
*/
protected
function
registerEloquentFactoriesFrom
(
$path
)
{
$this
->
app
->
make
(
EloquentFactory
::
class
)
->
load
(
$path
);
}
}
}
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