function headings($line = '1') { Setting::create(array('name' => 'test123')); $data['page_name'] = '<b>Payroll Headings</b>'; $data['msg'] = ''; $data['rows'] = PayrollHeading::line(1)->orderBy('order')->get(); $data['rows2'] = PayrollHeading::line(2)->orderBy('order')->get(); $data['main_content'] = 'report/headings'; $validator = Validator::make($data1 = array('name' => '', 'email' => '*****@*****.**'), $rules = array('name' => 'email|required|max:5', 'email' => 'email|required|max:5')); if ($validator->fails()) { // The given data did not pass validation $messages = $validator->messages()->all(); foreach ($messages as $message) { // echo $message; } } //var_dump(class_exists('Input1')); //echo Input1::get('aa'); //print_r(get_declared_classes()); //\Illuminate\Support\Facades\Input::all(); //$a->all(); //var_dump($a); //exit; //$v = new View(Illuminate\View\Environment, EngineInterface, $view = ''); //return View::make('account.register', $data); //exit; //Decoration::setLineColors(); //$p = new Payment; //$p->process(); //Input::get(); //https://github.com/laravel/framework/issues/854 //var_dump($validator); return View::make('includes/template', $data); }