dd( isset($student->sex) ); 在你的框架打印就不报错 在自己框架打印就报 LogicException in Model.php line 2723:
Relationship method must return an object of type Illuminate\Database\Eloquent\Relations\Relation
Relationship method must return an object of type Illuminate\Database\Eloquent\Relations\Relation
2017-11-08
ReflectionException in Container.php line 737: Class web does not exist
2017-11-03
public function handle($request, Closure $next)
{
//请求
$response = $next($request);
//逻辑
echo '逻辑单元';
return $response;
}
//最后需要有return,逻辑操作在 [return]前 && [请求]后.
{
//请求
$response = $next($request);
//逻辑
echo '逻辑单元';
return $response;
}
//最后需要有return,逻辑操作在 [return]前 && [请求]后.
2017-11-02
@gravility 这是习惯问题,因为这样写的话,在写别名(或者其他)的时候,直接在里面加,不会忘,也不会错了。
2017-11-02
在程序头写入以下语句:
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Session;
2017-11-01
FatalErrorException in Container.php line 1074:
Maximum function nesting level of '100' reached, aborting!
in Container.php line 1074
求大神帮我看下这是什么错误
Maximum function nesting level of '100' reached, aborting!
in Container.php line 1074
求大神帮我看下这是什么错误
2017-10-24
打印 $response用var_dump会报错:Trying to get property of non-object,用dd打印就可以了。
2017-10-13
Call to undefined method Illuminate\Database\Query\Builder::sex() (View: C:\wamp64\www\laravel-demo\resources\views\student\index.blade.php)
2017-10-08
with不生效的同学,请在路由设置那里将 群组路由 中对中间件的引用( 'middleware'=>'web' )删去,原因是5.2部分版本在 已经默认对所有的路由引入web中间件,若重复引入web中间价就会将session重新设置,造成将with函数的功能覆盖掉
2017-10-06