Permalink
Browse files

Changelog moved to a package

  • Loading branch information...
bpocallaghan committed Oct 27, 2017
1 parent 9d2eca8 commit 9f6d2726faba2cc6ed7f209b872627988d7bc2fd

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -37,11 +37,24 @@ public function map()
{
$this->mapApiRoutes();
$this->mapVendorRoutes();
$this->mapWebRoutes();
//
}
/**
* Map the web_vendor.php
* This has to be called before WebRoutes
*/
protected function mapVendorRoutes()
{
Route::middleware('web')
->namespace('Bpocallaghan')
->group(base_path('routes/vendor.php'));
}
/**
* Define the "web" routes for the application.
*
@@ -52,8 +65,8 @@ public function map()
protected function mapWebRoutes()
{
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
->namespace($this->namespace)
->group(base_path('routes/web.php'));
}
/**
@@ -66,8 +79,8 @@ protected function mapWebRoutes()
protected function mapApiRoutes()
{
Route::prefix('api')
->middleware('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
->middleware('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
}
}
@@ -1,7 +1,17 @@
{
"name": "bpocallaghan/laravel-admin-starter",
"description": "A Laravel CMS Starter project with AdminLTE, Roles, Impersonations, Analytics, Activity, Notifications and more.",
"keywords": ["framework", "laravel", "adminlte", "roles", "impersonate", "navigation", "analytics", "cms", "admin"],
"keywords": [
"framework",
"laravel",
"adminlte",
"roles",
"impersonate",
"navigation",
"analytics",
"cms",
"admin"
],
"license": "MIT",
"type": "project",
"require": {
@@ -10,13 +20,14 @@
"fideloper/proxy": "~3.3",
"google/recaptcha": "^1.1",
"guzzlehttp/guzzle": "^6.3",
"intervention/image": "^2.4",
"laravel/framework": "5.5.*",
"bpocallaghan/alert": "^1.1",
"intervention/image": "^2.4",
"bpocallaghan/notify": "^2.1",
"bpocallaghan/titan": "^0.2.9",
"bpocallaghan/sluggable": "^1.0",
"bpocallaghan/impersonate": "^1.0",
"bpocallaghan/changelogs": "^0.0.2",
"spatie/laravel-analytics": "^3.1",
"yajra/laravel-datatables-oracle": "^8.0"
},

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -176,6 +176,7 @@
/*
* Package Service Providers...
*/
Bpocallaghan\Changelogs\ChangelogsServiceProvider::class,
/*
* Application Service Providers...
@@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Seeder;
use Bpocallaghan\Changelogs\Models\Changelog;
class ChangelogTableSeeder extends Seeder
{
/**
* @param \Faker\Generator $faker
*/
public function run(\Faker\Generator $faker)
{
Changelog::truncate();
for ($i = 0; $i < $faker->numberBetween(3, 6); $i++) {
Changelog::create([
'version' => "0.0.{$i}",
'date_at' => $faker->dateTimeBetween('-5 weeks'),
'content' => '<p>' . $faker->paragraph(3) . '</p>',
]);
}
}
}
Oops, something went wrong.

0 comments on commit 9f6d272

Please sign in to comment.