Skip to content

Commit

Permalink
Removes github api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
austintoddj committed Oct 5, 2016
1 parent 8d26f44 commit e7018db
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions app/Http/Controllers/Backend/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,6 @@ public function index()
$project = end($packages);
$release = end($project);

// $opts = [
// 'http' => [
// 'method' => 'GET',
// 'header' => [
// 'User-Agent: PHP',
// ],
// ],
// ];
//
// $context = stream_context_create($opts);
// $stream = file_get_contents('https://api.github.com/repos/austintoddj/canvas/releases/latest', false, $context);
// $release = json_decode($stream);

$data = [
'posts' => Post::all(),
'recentPosts' => Post::orderBy('created_at', 'desc')->take(4)->get(),
Expand All @@ -45,7 +32,6 @@ public function index()
'status' => App::isDownForMaintenance() ? 0 : 1,
'canvasVersion' => Settings::canvasVersion(),
'latestRelease' => $release['version'],
// 'latestRelease' => $release->tag_name,
];

return view('backend.home.index', compact('data'));
Expand Down

0 comments on commit e7018db

Please sign in to comment.