我需要这一点,当你点击一个项目在背包侧边栏(为前。我可以立即编辑这个页面中的信息。名称、姓氏、生日等)没有经过桌子,典型的视觉背包。
以一种简单的方式:用户应该有能力改变他们的配置文件信息,只要一次点击。
我怎么才能在背包里做这件事呢?有人有什么想法吗?
启动代码:ProfileCrudController.php
public function __construct()
{
parent::__construct();
}
public function edit($id)
{
return parent::edit($id);
}
我安装了一个新的安装或laravel "^8.75“和背包"^5.3”,当我运行"php artisan背包:crud用户“时,我得到了以下错误:
BadMethodCallException
Method Illuminate\Support\Stringable::lcfirst does not exist.
有人知道问题可能是什么吗?我在网上找不到解决办法。
假设一个用户模型与一个电话模型关联为由定义的一对一的关系,这意味着用户模型具有一个功能:
/**
* Get the phone record associated with the user.
*/
public function phone()
{
return $this->hasOne('App\Phone');
}
而手机模型有一个功能:
/**
* Get the user that owns the phone.
*/
public function user()
{
return $this->belongsTo('A
我使用背包来显示各种MYSQL数据库表的CRUD。其中一个表包含一个点类型。
我使用Grimzy软件包来处理其他地方的问题,如下所示:
// Convert point from JSON coordinates to a MYSQL Point
$pnt = new Point($input['MonitoringPointGISLocation']['coordinates'][1],
$input['MonitoringPointGISLocation']['coordinates']