/
HomeController.php
50 lines (44 loc) · 1.12 KB
/
HomeController.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php namespace Dajiayao\Http\Controllers;
use Dajiayao\Http\Requests;
use Illuminate\Support\Facades\Request;
class HomeController extends Controller {
/*
|--------------------------------------------------------------------------
| Home Controller
|--------------------------------------------------------------------------
|
| This controller renders your application's "dashboard" for users that
| are authenticated. Of course, you are free to change or remove the
| controller as you wish. It is just here to get your app started!
|
*/
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show the application dashboard to the user.
*
* @return Response
*/
public function index()
{
$url = "http://resource.feng.com/resource/h054/h85/img201505200140510_130__84.png";
file_get_contents($url);
return view('home');
}
/**
* 默认跳转页面
* @return string
* @author zhengqian@dajiayao.cc
*/
public function defaultPage()
{
return "this is a default page";
}
}