Commit b6a20d04 authored by Nicolas Widart's avatar Nicolas Widart

First Commit

parents
<?php
return [
];
\ No newline at end of file
<?php namespace Modules\Dashboard\Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
class DashboardDatabaseSeeder extends Seeder {
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Model::unguard();
// $this->call("OthersTableSeeder");
}
}
\ No newline at end of file
<?php namespace Modules\Dashboard\Http\Controllers\Admin;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\View;
class DashboardController extends Controller
{
public function index()
{
return View::make('dashboard::admin.dashboard');
}
}
\ No newline at end of file
<?php
Route::group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\Dashboard\Http\Controllers'], function()
{
Route::get('/', 'Admin\DashboardController@index');
});
\ No newline at end of file
<?php namespace Modules\Dashboard\Providers;
use Illuminate\Support\ServiceProvider;
class DashboardServiceProvider 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();
}
}
<?php
return [
];
\ No newline at end of file
@extends('core::layouts.master')
@section('content-header')
<h1>
Dashboard
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
</ol>
@stop
@section('content')
<div class="row">
<div class="col-md-12">
<p>asd</p>
</div>
</div>
@stop
\ No newline at end of file
{
"name": "Dashboard",
"alias": "dashboard",
"description": "",
"keywords": [
],
"active": 1
}
\ No newline at end of file
<?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('dashboard', __DIR__ . '/Resources/views/');
Lang::addNamespace('dashboard', __DIR__ . '/Resources/lang/');
Config::addNamespace('dashboard', __DIR__ . '/Config/');
/*
|--------------------------------------------------------------------------
| Require The Routes file.
|--------------------------------------------------------------------------
|
| Next, this module will load filters and routes file.
|
*/
require __DIR__ . '/Http/routes.php';
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment