Rename widgets from Recent* to Latest*

This commit is contained in:
Nabeel Shahzad
2018-01-10 16:05:02 -06:00
parent 2ccaaddfcd
commit 9bc6501e8d
5 changed files with 6 additions and 9 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Widgets;
use App\Repositories\PirepRepository;
class LatestPireps extends BaseWidget
{
protected $config = [
'count' => 5,
];
/**
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function run()
{
$pirepRepo = app(PirepRepository::class);
return $this->view('widgets.latest_pireps', [
'config' => $this->config,
'pireps' => $pirepRepo->recent($this->config['count']),
]);
}
}