小编win*_*oy5的帖子

Laravel重定向,注销无效

我正在使用laravel 4框架.当我在Auth :: logout()之后使用重定向时,重定向不起作用.我也使用了View :: make(),但同样的"哎呀,看起来像是出了问题." 错误抛出.

public function getLogout() {
      Auth::logout();
  return Redirect::to('users/login')->with('message', 'Your are now logged out!');
}
Run Code Online (Sandbox Code Playgroud)

这是注销码.我在用.有人请帮帮我.

routes.php文件

Route::get('/', function()
  {
return View::make('hello');
  });

Route::controller('users', 'UsersController');
Run Code Online (Sandbox Code Playgroud)

HTML

            @if(!Auth::check())
                <li>{{ HTML::link('users/register', 'Register') }}</li>   
                <li>{{ HTML::link('users/login', 'Login') }}</li>   
            @else
                <li>{{ HTML::link('users/logout', 'logout') }}</li>
            @endif
Run Code Online (Sandbox Code Playgroud)

这是我的调试器显示的内容.

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'remember_token' in 'field list'    (SQL: update `users` set `updated_at` = 2014-04-23 11:30:41, `remember_token` = jSMcfpPnCPrKgwqfhB2tEEEd8h8x6d72viz67MbVzBD27A2G7AH8yWQo1ORf where `id` = 1) 
Run Code Online (Sandbox Code Playgroud)

php authentication redirect laravel laravel-4

25
推荐指数
3
解决办法
3万
查看次数

网站不在Windows Phone中滚动

我已经创建了一个与nodejs集成的响应式网站,它可以在所有设备上正常运行.

但是在Windows Phone IE浏览器中,网页没有向下滚动,我不知道是什么导致了这一点.

/*css*/
@media (max-width: 400px) {
    @-ms-viewport {
        width: 320px;
    }
}

/*js*/
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
    var msViewportStyle = document.createElement("style");
    msViewportStyle.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}"));

    document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
}
Run Code Online (Sandbox Code Playgroud)

响应性在Windows Phone上存在一些问题,因此我使用上述代码补丁来解决问题.但滚动问题仍然存在,有人知道如何解决这个问题吗?

html5 scroll css3 windows-phone media-queries

11
推荐指数
1
解决办法
1522
查看次数

如何在我的颤动应用程序中向我的颤动路线添加自定义过渡

如何向我的颤动路线添加自定义过渡.这是我目前的路线结构

class MyApp extends StatelessWidget {
    // This widget is the root of your application.
    @override
    Widget build(BuildContext context) {
        return new MaterialApp(
            title: 'Yaip',
            theme: new ThemeData(
                primarySwatch: Colors.pink,
                brightness: Brightness.light
            ),
            home: new VerifyPhoneNumber(),
            routes: <String, WidgetBuilder>{
                '/verified': (BuildContext context) =>  new MobileNumberVerified(),
                '/setupprofile': (BuildContext context) =>  new SetUpProfile()
            },
        );
    }
}
Run Code Online (Sandbox Code Playgroud)

transition routes dart flutter

9
推荐指数
3
解决办法
1万
查看次数

如何使鼠标滚轮滚动到像mediafire.com一样的部分

我遇到了这个网站http://www.mediafire.com/的主页,当你滚动鼠标滚轮时,页面自动定位到页面的下一部分.我想知道它是如何完成的.谁能帮我这个.提前致谢.

此致,Aswin

jquery scroll scrollto mousewheel

7
推荐指数
1
解决办法
4万
查看次数

登录会话在 Firefox 中立即过期,但在 Chrome 中工作正常

我在我的网站上使用 Facebook api 和 Laravel。该网站在 Chrome 中运行良好,但有时在 Firefox 中,会话在登录后立即过期。
我不确定是什么导致了这个问题。我检查了 Firefox cookie、Laravel 会话和 phpsession id 是否存在。

php session firefox facebook laravel

5
推荐指数
1
解决办法
3459
查看次数

iconv():错误的字符集,不允许从"auto"转换为"utf-8 // IGNORE"

我正在为我的Laravel 4框架使用thujohn/PDF-l4插件.它在本地Windows环境中工作正常.但是当移动到我的Centos生产环境时,以下错误会引发PDF转换.

"iconv(): Wrong charset, conversion from `auto' to `utf-8//IGNORE' is not allowed"
Run Code Online (Sandbox Code Playgroud)

检查了我的php-mbstring,但找不到任何错误.

php centos utf-8 dompdf laravel-4

4
推荐指数
1
解决办法
1万
查看次数

参数类型“BoxShadow”无法分配给参数类型“List&lt;BoxShadow&gt;”

我正在尝试在 flutter 中构建自定义列表项。当我尝试将框半径分配给列表项时,我遇到以下语法错误:

**The argument type 'BoxShadow' can't be assigned to the parameter type 'List<BoxShadow>'.**
Run Code Online (Sandbox Code Playgroud)

我似乎无法将框阴影分配给列表。我是 flutter 新手,有没有办法将自定义框阴影添加到 AnimatedList() 的列表项中。我提供了以下代码:

Widget _buildItem(UserModel user, [int index]) {
return Container(
  padding: EdgeInsets.all(8.0),
  margin: EdgeInsets.symmetric(horizontal: 10.0, vertical: 6.0),
  decoration: BoxDecoration(
    color: Colors.grey[50],
    borderRadius: BorderRadius.all(Radius.circular(5.0)),
    boxShadow: BoxShadow(
      blurRadius: 5.0
    )
  ),
  child: Row(
    children: <Widget>[
      InkWell(
        child: CircleAvatar(
          radius: 30.0,
          backgroundImage: NetworkImage(user.photo, scale: 64.0),
        ),
        onLongPress: index != null ? () => deleteUser(index) : null,
      )
    ],
  ),
);
Run Code Online (Sandbox Code Playgroud)

}

dart flutter flutter-layout flutter-animation

1
推荐指数
1
解决办法
4668
查看次数