摘要:
$data['base_path'] = base_path(); $data['config_path'] = config_path(); $data['yuming'] = url()->previous(); $data['app_path'] = app_path(); $data['pu 阅读全文
摘要:
use Illuminate\Support\Facades\Route; Route::get('/', function () { return view('welcome'); }); Route::get('phpinfo', function () { return phpinfo(); 阅读全文
摘要:
public function select(){ //查询一条 // $res=User::find(1); // $res=User::where('id',1)->first(); //查询单条数据的单个字段的值 // $res=User::where('id',1)->value('user 阅读全文
摘要:
public function index() { $data = [ [ 'id' => 1, 'b' => '11', 'c' => '11', ], [ 'id' => 2, 'a' => '33', 'b' => '33', ], [ 'id' => 3, 'a' => '22', 'b' 阅读全文