他们可以帮助我,我在Laravel中有一个项目,在Localhost中一切正常,但现在它在服务中,警报器不工作,不让视图返回,如果我删除警报器一切正常( sql行,引导,路由,一切正常没有警报器)
这是Alertify的功能之一,但它们不能如上所述地工作:
public function create(CreateUserRequest $request)
{
$user = new User($request->all());
$user->password = bcrypt($request->get('password'));
$user->save();
alertify()->success('USER ' . $user->name . ' CREATED.')
->position('bottom right')
->delay(6000);
return redirect()->route('users_path');
}发布于 2018-02-23 15:08:59
确保已添加警报库
composer require odannyc/laravel-alertify或
<script src="https://cdn.rawgit.com/alertifyjs/alertify.js/v1.0.10/dist/js/alertify.js"></script>并尝试使用
alertify()->success('USER WAS CREATED.')->delay(6000)->position('bottom right');如果以上行正常工作,则选中$user->name this has data (dd($user->name))
https://stackoverflow.com/questions/48931674
复制相似问题