Permalink
Browse files

Testimonials moved to a package

  • Loading branch information...
bpocallaghan committed Oct 31, 2017
1 parent b008232 commit fd24b9e65b084c24f803efbfd654df27582fa02f

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
@@ -32,29 +32,4 @@ public function index($slug1, $slug2 = null, $slug3 = null)
return $this->view('pages.page')->with('activePage', $page);
}
/**
* Show the changelog page
*
* @return \Illuminate\Http\Response
*/
public function changelog()
{
$items = Changelog::orderBy('version', 'DESC')->get();
return $this->view('changelog', compact('items'));
}
/**
* Show the changelog page
*
* @return \Illuminate\Http\Response
*/
public function testimonials()
{
$this->showPageBanner = true;
$items = Testimonial::orderBy('list_order')->get();
return $this->view('testimonials', compact('items'));
}
}

This file was deleted.

Oops, something went wrong.
@@ -31,6 +31,7 @@
"bpocallaghan/impersonate": "^1.0",
"bpocallaghan/corporate": "^0.0.1",
"bpocallaghan/changelogs": "^0.0.3",
"bpocallaghan/testimonials": "^0.0.2",
"yajra/laravel-datatables-oracle": "^8.0"
},
"require-dev": {

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

Oops, something went wrong.
@@ -26,6 +26,7 @@ public function run()
$this->call(SubscriptionPlanTableSeeder::class);
$this->call(FAQTableSeeder::class);
$this->call(TestimonialTableSeeder::class);
$this->call(NewsTableSeeder::class);
$this->call(ArticleTableSeeder::class);
@@ -0,0 +1,20 @@
<?php
use Illuminate\Database\Seeder;
use Bpocallaghan\Testimonials\Models\Testimonial;
class TestimonialTableSeeder extends Seeder
{
public function run(\Faker\Generator $faker)
{
Testimonial::truncate();
for ($i = 0; $i < 5; $i++) {
$item = Testimonial::create([
'customer' => $faker->name(),
'link' => $faker->url,
'description' => "<p>" . $faker->paragraph(3) . "</p>",
]);
}
}
}
Oops, something went wrong.

0 comments on commit fd24b9e

Please sign in to comment.