我有一个主文件,就是welcome.blade.php,我在这里做了这样的标记
<!DOCTYPE html>
<html>
<head>
<title>
@yield('title') // title from signup.blade.php
</title>
</head>
<body>
<!-- some content here -->
@
我最近添加了节点刀片智能包到我的流星和静态内容显示很好。但是,我不能使用任何模板变量。在安装刀片之前,模板变量可以很好地工作在把手上。有人知道我做错了什么吗?
控制台输出
ReferenceError: player is not defined
at ~/meteor/project/views/info.blade:1:1
1 > .player-name.large= player.name
2 | .alliance-name= alliance.name
3 | .world-name= world.name
4 |
at eval (eval at &l
是否有可能查询数据库到Blade?我从路线发送到刀片,所有的MyUsers和预订。
我有专栏id_user,
我有这个密码
@foreach
{{$booking->id}}
this down Foreach is not optimized - it's possible improve it?
@foreach ($Myusers as $Myuser)
@if ($myuser == $booking->id_user)
$myuser->name
@endif
@endforeach
@endforeach
我尝试过Blad
假设我有9个刀片模板(p1.blade.php到p9.blade.php)和3个用户(member1、member2和member3)
member1 can only access p1.blade.php, p2.blade.php, p3.blade.php
member2 can only access p4.blade.php, p5.blade.php, p6.blade.php
member3 can only access p7.blade.php, p8.blade.php, p9.blade.php
我该怎么做呢?
如果我想测试我的Auth页面,我会得到以下错误:
Trying to get property of non-object (View: C:\xampp\htdocs\system\app\views\home.blade.php)
这在我的home.blade.php页面上:
<?php
$username = Auth::user()->username;
$id = Auth::id();
if (Auth::check()) {
?>
Hey, if you see this, than you have been logged in