phpvms/app/Http/Controllers/Admin/DashboardController.php
2017-07-22 23:03:39 -05:00

25 lines
482 B
PHP

<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use Feed;
class DashboardController extends BaseController
{
/**
* Display a listing of the Airlines.
*/
public function index(Request $request)
{
Feed::$cacheDir = storage_path('app');
Feed::$cacheExpire = '5 hours';
$feed = Feed::loadRss(config('phpvms.feed_url'));
return view('admin.dashboard', [
'feed' => $feed,
]);
}
}