小编Ami*_*man的帖子

如何剪切框角使用具有透明背景的CSS?

我想用这样的CSS剪切一个盒子的左上角.

在此输入图像描述

请记住,背景是透明的.

css sass rounded-corners css3 box

8
推荐指数
3
解决办法
3829
查看次数

Nuxt.js | 打开一个新页面作为带有路线的模态窗口

我怎样才能实现像#dribble、#behance、旧的#twitter 覆盖这样的东西?当您打开单个项目或在那里发布时,您将看到一个带有路线的模式,而无需离开页面。

简单来说就是带路由的模态窗口。

例如,当我访问example.com/loginexample.com/posts/1现有页面内容应保留并且模态应带有路线。

我希望我说清楚了。

谢谢

javascript modal-dialog vue.js nuxt.js

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

Laravel where 子句在多个 orWhere 子句后不起作用?

我正在查询带有型号名称和类型的车辆,但这些 where 子句在添加orWhere. 当我评论或删除这些orWhere条款时,它的工作。

$models = Vehicle::join('vmodels', 'vmodels.vehicle_id', '=', 'vehicles.id')
    ->join('vehicletypes', 'vehicletypes.id', '=', 'vehicles.vehicletype_id')
    ->join('brands', 'brands.id', '=', 'vehicles.make')
    ->join('companies', 'brands.id', '=', 'companies.name')
    ->select('vehicles.slug as vslug', 'brands.name as brandname', 'vehicles.id as vid', 'vmodels.*', 'vehicletypes.name as vtype', 'companies.status as cstatus')
    ->where('brands.name', 'LIKE', "%{$term}%")
    ->orWhere('vmodels.name', 'LIKE', "%{$term}%")
    ->orWhere('vmodels.year', 'LIKE', "%{$term}%")
    ->orWhere('vehicletypes.name', 'LIKE', "%{$term}%")
    ->orWhere('vehicles.model', 'LIKE', "%{$term}%")
    ->where('companies.status', '=', 1 )
    ->where('vmodels.status', '=', 1)
    ->where('vehicles.status', '=', 1)
    ->paginate(30);
Run Code Online (Sandbox Code Playgroud)

php mysql laravel eloquent laravel-5

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

这种多重可选过滤器的最佳解决方案是什么?

这些都是可选字段,所以我是否必须编写多个带条件的查询,或者有什么方法可以使用 Laravel 来处理这个问题?查询会是什么样子?

谢谢

在此输入图像描述

php mysql laravel laravel-5

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