public function index() { $this->data['member_list'] = Example2::all('*', 10); //Blade::render('example/example', $this->data); Blade::render('example', $this->data); }
public function index() { Blade::render('404', $this->data); }
public function index() { Blade::render('example'); }
public function index() { Blade::render('welcome'); }
public function complex() { $memberList = DB::table('member')->limit(100)->get(); Cache::store('member_list_cache', $memberList); Session::set('member_list', Cache::get('member_list_cache')); $this->data['member_list'] = Session::get('member_list'); DB::beginTransaction(); DB::insert('test', array('val1' => 'A', 'val2' => 'B')); $insert_id = DB::insertId(); DB::update('test', 'test_id', $insert_id - 1, array('val1' => 'A2', 'val2' => 'B2')); DB::delete('test', 'test_id', $insert_id - 3); DB::commit(); $sql = "SELECT * FROM member WHERE email = ? AND name LIKE ?"; $this->data['member_list'] = DB::getAllQuery($sql, array('*****@*****.**', '%Elips%')); Blade::render('testing', $this->data); }
public function index() { $this->data['member_list'] = Example::all('*', 10); $this->data['var'] = array('<?php echo "AAA";?>'); Blade::render('example', $this->data); }