Laravel中创建控制器
<?php
/**
* Created by PhpStorm.
* User: chuang
* Date: 17-1-14
* Time: 下午4:29
*/
namespace App\Http\Controllers;
//继承控制器即可
class User extends Controller
{
public function getName(){
//调用模型
return \App\Http\Model\Member::getName();
}
}