本文整理汇总了PHP中Debugbar::info方法的典型用法代码示例。如果您正苦于以下问题:PHP Debugbar::info方法的具体用法?PHP Debugbar::info怎么用?PHP Debugbar::info使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Debugbar
的用法示例。
在下文中一共展示了Debugbar::info方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
public function index()
{
$this->data['personales'] = Personal::all();
$this->data['personalActive'] = 'active';
Debugbar::info($this->data['personales']);
return View::make('admin.personal.index', $this->data);
}
示例2: boot
public function boot()
{
$this->loadViewsFrom(realpath(__DIR__ . '/../views'), 'maikblog');
$this->publishes([realpath(__DIR__ . '/../views') => base_path('resources/views/vendor/maikblog')]);
$this->setupRoutes($this->app->router);
// this for conig
$this->publishes([__DIR__ . '/config/maikblog.php' => config_path('maikblog.php')], 'config');
//this for migrations
$this->publishes([__DIR__ . '/database/migrations/' => database_path('migrations')], 'migrations');
//this for css and js
$this->publishes([realpath(__DIR__ . '/../assets') => public_path('maiklez/maikblog')], 'public');
\Validator::extend('tag_rule', function ($attribute, $value, $parameters) {
$tags = explode(',', $value);
// remove empty items from array
$tags = array_filter($tags);
// trim all the items in array
$tags = array_map('trim', $tags);
\Debugbar::info($tags);
foreach ($tags as $tag) {
if ($tag === "") {
return false;
}
}
return true;
});
\Validator::replacer('tag_rule', function ($message, $attribute, $rule, $parameters) {
return str_replace("no white spaces are allow");
});
}
示例3: getUserByCredential
/**
* @param $password
* @param $loginName
* @param bool $flag
* @return Users
*/
public function getUserByCredential($password, $loginName, $flag = null)
{
if ($flag == null) {
$flag = false;
}
\Debugbar::info($flag);
// TODO: Implement getUserByCredential() method.
if (!$flag) {
$user = $this->model->newQuery()->with('getGroup')->where('email', '=', $loginName)->where('ugroup', '!=', 2)->where('Active', '=', 1)->first();
if ($user != null) {
if (\Hash::check($password, $user->getPassword())) {
\Debugbar::addMessage('hash matches - ' . Hash::make($password));
return $user;
} else {
\Debugbar::addMessage('hash dose not match');
return null;
}
} else {
return null;
}
} else {
$user = $this->model->newQuery()->with('getGroup')->where('Password', '=', $password)->where('email', '=', $loginName)->where('Active', '=', 1)->first();
if ($user != null) {
return $user;
} else {
return null;
}
}
}
示例4: index
public function index()
{
$this->data['personales'] = Personal::where('tipoPersonal', '=', 'Voluntario')->get();
$this->data['personalVoluntarioActive'] = 'active';
Debugbar::info($this->data['personales']);
return View::make('admin.personalVoluntario.index', $this->data);
}
示例5: get
public function get($key)
{
$val = \App\Config::where('key', $key)->pluck('value');
\Debugbar::info($key . ' : ' . $val);
$val = unserialize($val);
return $val;
}
示例6: getData
/**
* [getData]
* @return [type] [description]
*/
public function getData()
{
$Model = $this->modelName;
$all_reminders = $Model::all($this->dataTableColumns);
$data = [];
foreach ($all_reminders as $reminder) {
// load relations
$load_curr_project = $reminder->project;
$load_curr_user = $reminder->user;
$curr_reminder = $reminder;
Debugbar::info($reminder);
if (isset($reminder->user_id) && isset($reminder->project_id)) {
$curr_proj = (object) ['id' => $reminder->reminder_id, 'name' => $reminder->project->name];
$curr_user = (object) ['id' => $reminder->user_id, 'username' => $reminder->user->username];
$curr_entry = (object) ['DT_RowId' => 'row_' . $reminder->id, 'reminders' => $curr_reminder, 'users' => $curr_user, 'projects' => $curr_proj];
$data[] = $curr_entry;
}
}
$all_projects = Project::orderBy('name', 'DESC')->get(['id', 'name']);
$projects = [];
foreach ($all_projects as $project) {
$tmp_project = (object) ['value' => $project->id, 'label' => $project->name];
$projects[] = $tmp_project;
}
$all_users = User::all(['id', 'username']);
$users = [];
foreach ($all_users as $user) {
$tmp_user = (object) ['value' => $user->id, 'label' => $user->username];
$users[] = $tmp_user;
}
$ret = ['data' => $data, 'projects' => $projects, 'users' => $users];
return Response::json($ret);
}
示例7: index
/**
* Display a list of all blog post to admin.
*
* @param Request $request
* @return Response
*/
public function index(Request $request)
{
$posts = Post::all();
$bestTag = Tag::with('postCount')->get()->sortByDesc('postCount');
$bestCat = Category::with('postCount')->get()->sortByDesc('postCount');
\Debugbar::info($bestTag);
return view('maikblog::table', ['posts' => $posts, 'best_tag' => $bestTag, 'best_cat' => $bestCat]);
}
示例8: index
public function index()
{
$this->data['beneficiarios'] = Beneficiario::all();
$this->data['responsables'] = Personal::where('tipoPersonal', '=', '');
Debugbar::info($this->data['beneficiarios']);
$this->data['beneficiariosActive'] = 'active';
return View::make('admin.beneficiarios.index', $this->data);
}
示例9: show
public function show($teamID, $year)
{
$team = Team::leftJoin('league', 'lgID', '=', 'league.id')->leftJoin('division', 'divID', '=', 'division.id')->where('teamID', '=', $teamID)->where('yearID', '=', $year)->first();
\Debugbar::info($team);
$battingGrids = BattingController::team($teamID, $year);
$pitchingGrids = PitchingController::team($teamID, $year);
$fieldingGrids = FieldingController::team($teamID, $year);
return view('teams.show')->with(['team' => $team, 'year' => $year, 'battingGrids' => $battingGrids, 'pitchingGrids' => $pitchingGrids, 'fieldingGrids' => $fieldingGrids]);
}
示例10: subtest
public function subtest()
{
$localeCode = LaravelLocalization::getCurrentLocale();
$urltrans = trans('test::routes.subtest');
\Debugbar::info($urltrans);
$test = LaravelLocalization::getLocalizedURL($localeCode, route('test'));
\Debugbar::info($test);
return '<p>Sub-test</p><p><b>Language</b>: ' . $localeCode . '</p><p>Our translation url: ' . $urltrans . '</p>';
}
示例11: login
public function login()
{
$credential = array('password' => \Input::get('password'), 'login' => \Input::get('email'));
\Debugbar::info($credential);
if (\Dobby::login($credential)) {
return \Redirect::to('admin');
}
return view("admin.login");
}
示例12: pay
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function pay()
{
\Pingpp\Pingpp::setApiKey('sk_test_urT4i5iPOCiHPmj5K0uLO0GK');
$res = \Pingpp\Charge::create(array('order_no' => '0123456789', 'amount' => '100', 'app' => array('id' => 'app_9iLSeP8Oi5SGznbj'), 'channel' => 'upacp_pc', 'currency' => 'cny', 'client_ip' => '127.0.0.1', 'subject' => 'Your Subject', 'body' => 'Your Body', 'extra' => array('success_url' => 'http://www.jindanlan.com/')));
\Debugbar::info($res);
$content = $res;
$status = 200;
$value = "text/json";
return response($content, $status)->header('Content-Type', $value);
}
示例13: getData
public function getData()
{
$models = TaskTemplate::select($this->dataTableColumns);
return Datatables::of($models)->addColumn('Group', function ($m) {
$ret = TaskGroup::find($m->group_id)->name;
Debugbar::info($ret);
return $ret;
})->removeColumn('group_id')->add_column('actions', '<a href="{{{ URL::to(\'/admin/tasktemplates/\' . $id . \'/edit\' ) }}}" class="iframe btn btn-xs btn-default cboxElement">{{{ Lang::get(\'button.edit\') }}}</a>
<a href="{{{ URL::to(\'/admin/tasktemplates/\' . $id . \'/delete\' ) }}}" class="iframe btn btn-xs btn-danger cboxElement">{{{ Lang::get(\'button.delete\') }}}</a>')->make();
}
示例14: checkEmailExists
public function checkEmailExists(Request $request)
{
$email = $request->get('email');
\Debugbar::info("comprovant email " . $email);
//TODO comprovar email correctament
if ($this->checkEmail($email)) {
return "true";
} else {
return "false";
}
}
示例15: getActor
public function getActor($id)
{
$url = html_entity_decode("http://api.themoviedb.org/3/person/" . $id . "/movie_credits?");
$options = array("api_key" => "af5b30b8759307d572388fceb9fa4331", "sort_by" => "release_date.desc");
$url .= http_build_query($options, '', '&');
$myData = file_get_contents($url) or die(print_r(error_get_last()));
$movies = json_decode($myData);
foreach ($movies->cast as $i => $v) {
\Debugbar::info($v);
}
return view('index')->with('data', $movies->cast);
}