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
5ae1231d
Commit
5ae1231d
authored
Oct 26, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First Commit
parents
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
147 additions
and
0 deletions
+147
-0
MediaDatabaseSeeder.php
Database/Seeders/MediaDatabaseSeeder.php
+21
-0
MediaController.php
Http/Controllers/MediaController.php
+8
-0
routes.php
Http/routes.php
+8
-0
MediaServiceProvider.php
Providers/MediaServiceProvider.php
+35
-0
RouteServiceProvider.php
Providers/RouteServiceProvider.php
+47
-0
module.json
module.json
+11
-0
start.php
start.php
+17
-0
No files found.
Database/Seeders/MediaDatabaseSeeder.php
0 → 100644
View file @
5ae1231d
<?php
namespace
Modules\Media\Database\Seeders
;
use
Illuminate\Database\Seeder
;
use
Illuminate\Database\Eloquent\Model
;
class
MediaDatabaseSeeder
extends
Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public
function
run
()
{
Model
::
unguard
();
// $this->call("OthersTableSeeder");
}
}
Http/Controllers/MediaController.php
0 → 100644
View file @
5ae1231d
<?php
namespace
Modules\Media\Http\Controllers
;
use
Illuminate\Routing\Controller
;
class
MediaController
extends
Controller
{
}
Http/routes.php
0 → 100644
View file @
5ae1231d
<?php
Route
::
group
(
[
'prefix'
=>
'media'
,
'namespace'
=>
'Modules\Media\Http\Controllers'
],
function
()
{
Route
::
get
(
'/'
,
'MediaController@index'
);
}
);
Providers/MediaServiceProvider.php
0 → 100644
View file @
5ae1231d
<?php
namespace
Modules\Media\Providers
;
use
Illuminate\Support\ServiceProvider
;
class
MediaServiceProvider
extends
ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected
$defer
=
false
;
/**
* Register the service provider.
*
* @return void
*/
public
function
register
()
{
//
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public
function
provides
()
{
return
array
();
}
}
Providers/RouteServiceProvider.php
0 → 100644
View file @
5ae1231d
<?php
namespace
Modules\Media\Providers
;
use
Illuminate\Routing\Router
;
use
Illuminate\Foundation\Support\Providers\RouteServiceProvider
as
ServiceProvider
;
class
RouteServiceProvider
extends
ServiceProvider
{
/**
* The root namespace to assume when generating URLs to actions.
*
* @var string
*/
protected
$rootUrlNamespace
=
'Modules\Setting\Http\Controllers'
;
/**
* The controllers to scan for route annotations.
*
* @var array
*/
protected
$scan
=
[
'Modules\Setting\Http\Controllers'
,
];
/**
* Called before routes are registered.
*
* Register any model bindings or pattern based filters.
*
* @param Router $router
* @return void
*/
public
function
before
(
Router
$router
)
{
//
}
/**
* Define the routes for the application.
*
* @return void
*/
public
function
map
(
Router
$router
)
{
require
__DIR__
.
'/../Http/routes.php'
;
}
}
module.json
0 → 100644
View file @
5ae1231d
{
"name"
:
"Media"
,
"alias"
:
"media"
,
"description"
:
""
,
"keywords"
:
[
],
"active"
:
1
,
"providers"
:
[
"Modules
\\
Setting
\\
Providers
\\
RouteServiceProvider"
]
}
start.php
0 → 100644
View file @
5ae1231d
<?php
/*
|--------------------------------------------------------------------------
| Register The Module Namespaces
|--------------------------------------------------------------------------
|
| Here is you can register the namespace for this module.
| You may to edit this namespace if you want.
|
*/
View
::
addNamespace
(
'media'
,
__DIR__
.
'/Resources/views/'
);
Lang
::
addNamespace
(
'media'
,
__DIR__
.
'/Resources/lang/'
);
Config
::
addNamespace
(
'media'
,
__DIR__
.
'/Config/'
);
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