小编Abe*_*l D的帖子

如何清理Laravel Bootstrap缓存配置文件?

我在本地开发了laravel app并上传到共享主机.

托管时我在.env和config/database文件中更改了mysql的数据库名称和用户名.

但是在远程它仍然使用bootstrap/cache/config文件中的旧数据库名称和用户.

那么如何清理bootstrap/cache/config.php文件呢?

php mysql laravel

11
推荐指数
6
解决办法
2万
查看次数

Flutter 提供者状态未在消费者小部件中更新

我正在尝试跨页面使用提供程序设置状态。但它没有改变。

我在 main.dart main.dart 添加了 changeNotifierProvider

    class MyApp extends StatelessWidget {
      // This widget is the root of your application.
      @override
      Widget build(BuildContext context) {
        return MultiProvider(
          providers: [
            ChangeNotifierProvider(builder: (context) => GlobalState())
          ],
        child: MaterialApp(
            title: 'Flutter Demo',
            theme: ThemeData(
              primarySwatch: Colors.blue,
            ),
            routes: {
              '/': (context) => HomePage(),
              '/products': (context) => ProductsPage()
            }
          )
        );
      }
    }
Run Code Online (Sandbox Code Playgroud)

我正在尝试设置并获取一个简单的名称字符串

globatState.dart

    class GlobalState extends ChangeNotifier{
      String _name = 'Hello';
      String get getName => _name;
      void setName(String value){
        _name = value; …
Run Code Online (Sandbox Code Playgroud)

flutter

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

Fabricjs 对象控制画布外部可见

我正在将 Fabric.js 用于 html 5 交互式画布应用程序。如果对象的比例大于画布,则控件在画布外不可见。如何使其在画布外可见,或者有没有办法在 css 中设置这些控制器的样式。

html5-canvas fabricjs

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

选择自定义指令和ng-change

使用<select>自定义指令,我想在更改值时运行函数.

HTML

<select name="user_type" ng-model="user_type" user-type ng-change="check_type()">
Run Code Online (Sandbox Code Playgroud)

指示

gb_dash.directive('userType', function(){
    return{
        restrict: 'A',
        require: '^ngModel',
        scope:{
            check_type: '&'
        },
        link: function(scope, elem, attrs){
            scope.check_type = function(){
                console.log('changed');
            }
        }
    }
});
Run Code Online (Sandbox Code Playgroud)

html javascript angularjs angularjs-directive

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

CSS border-image无法在Chrome中运行

我已经使用CSS border-image在菜单栏中获得了一定的效果.它在Firefox中运行良好.但是在Chrome中不起作用.

www.imptools.com.有没有针对chrome的解决方法?

CSS

nav.mainMenu{
width:@16cols; height: 50px;
margin:0 auto; position: relative;
top:-25px;
ul{
    width:100%; height:50px; overflow: visible;
    background: url('../imgs/gun_metal.png');
    border-radius: 15px; box-shadow: 0px 3px 3px @dark;

    li{
        float:left; width: auto;
        margin: 0 20px; overflow: visible;
        height: 80px; position:relative; top:-15px;
        a{
            width: auto; height: auto;
            float:left; padding: 0 15px;
            font-family: @sansSec;
            color:@light;
            line-height: 80px;
            font-size: 24px;
            font-weight: bold;
            text-shadow: 3px 3px 3px @dark;
        }
    }
    li.active, li:hover{
        background: @primary;
        border-radius: 15px 0 15px 15px;
        border-image:url(../imgs/menu_active_bg.png);   
        border-image-width:15px 15px …
Run Code Online (Sandbox Code Playgroud)

css google-chrome

4
推荐指数
3
解决办法
4216
查看次数