
[英]laravel dynamic routing showing 404 not found
我已经创建了一个路由来将动态参数传递给 controller 但是当我服务 url 时它显示我找不到这里是我的路由和 controller 我创建航线 Controller 当我为 url localhost/public/managers 服务时,它显示 404 not found 但是当我为 ...
[英]laravel dynamic routing showing 404 not found
我已经创建了一个路由来将动态参数传递给 controller 但是当我服务 url 时它显示我找不到这里是我的路由和 controller 我创建航线 Controller 当我为 url localhost/public/managers 服务时,它显示 404 not found 但是当我为 ...
[英]Random project chooser for laravel
今天我有两个类似的 Laravel 项目,除了 Laravel 版本外,它们完全相同,第一个运行在 5.5 上,第二个是运行在 Laravel 9 上的更新版本。Laravel 9 一个不在生产中,因为我们需要一个测试它并检查更新后是否一切正常的方法。 我的问题是是否有办法仅将较新版本重定向到某些客 ...
[英]How to solve failed to download laravel/laravel from dist
在“./store”创建一个“laravel/laravel”项目 来自https://repo.packagist.org的信息:#StandWithUkraine 安装 laravel/laravel (v9.5.1) 无法从 dist 下载 laravel/laravel:zip 扩展和 u ...
[英]How to change dynamically APP_KEY in for different different users
基本上我想将不同的不同 APP_KEY 分配给不同的不同用户我已经在“用户表”中存储了生成的 app_key 所以,我的问题是我怎样才能实现这个? 我已经尝试但无法得到适当的解决方案 ...
[英]How I can pipeline the incomming results in Laravel so I can process them whilst I read them?
我需要在控制台命令中运行查询: 但预计结果会相当大 ~ 100.000 条记录,因此为了节省 memory 消耗,我希望以某种方式流式传输数据库结果,而不是在一个 go 上获取。 我真正想做的是: 意思是我不想等待返回结果,但是一旦我有了第一个结果,我就想开始处理它。 使用 laravel 是否 ...
[英]Laravel controller Merge 2 array to Comparision selling
我有 2 个数组来从不同日期范围的位置获取已售出的产品,然后我需要在两个 arrays 之间进行比较 现在我的结果是 $results_day_report = $results_day_report_year_before 的结果是 然后我使这个 foreach 循环生成一个带有比较的数组 现 ...
[英]How to make command in Laravel that can go thousands rows and update all data with Job that can update grouped by 50 data
我想通过 go 通过数据库中的所有数据并更新每行 API 中的一些数据的命令。我害怕停止命令或 cron,所有数据都不会更新。 当命令再次运行时,它将从第一个 id 开始为 go。 例如,如果我有 ids:[1,2,3,4,5,6,7,8,...100,101,..1000,1001,...] 我想 ...
[英]How can I display the product sales per month using a Line Graph?
这是折线图: 我尝试使用for循环为数据创建一个数组,但仍然没有可见数据,或者我的数据库中没有足够的数据? ...
[英]update content of stored column in laravel controller
我有一个包含 3 列的表:名字姓氏全名在迁移中: 问题是我想更改 controller 中的连接顺序 我尝试使用 db 语句但它不起作用 - 在 controller 中: 我不想只使用简单的串联,因为用户可以更改名字或姓氏以及顺序,这就是我使用 storedAs() 的原因有什么想法吗? ...
[英]How to compare a DB value to another DB value in Laravel
我想比较数据库的两个值。 是否可以使用“where”方法来做到这一点? 例如,“tnx_time”是一个 DB 值,“value(duration)”是另一个。 但是我现在无法访问“where”function 的第三个字段上的数据库值。 有人知道如何解决吗? ...
[英]More than one title we have but how can i get it in array laravel
我们必须找到与问题 ID 关联的测验标题,但有不止一个具有相同问题 ID 的测验。 我们得到的回报不是全部。 我能做什么? 我尝试使用 whereIn 但出现错误为 foreach() 提供的参数无效 ...
[英]Cannot use object of type stdClass as array (View: .../para-answers.blade.php)
这里我们遇到了一个问题(不能将 object 类型的 stdClass 用作数组)。 请帮我解决这个问题。 在此我们要显示学生段落问题的结果...该项目建立在 laravel 5.2 请检查以下错误解决此...我在进行段落考试时遇到此错误。 laravel.log文件 [2022-12-28 1 ...
[英]Error 500 in laravel 5.2 when user was loged in
我在 laravel 项目中运行composer update和composer selfupdate现在我收到错误 500 和空白页面后用户登录并查看项目页面这张照片是我的日志 laravel 日志我运行这个命令 有人可以帮助我吗? kernel.php 命名空间 App\Http; 使用 I ...
[英]Data is not coming in laravel 5.4 after using timestamp in query
在 Laravel 中比较 2 次之间的当前时间以获取数据时,数据没有到来。 两次都作为时间戳保存在数据库中,在查询中我也使用时间戳。 下面是我写的代码:- “ time_from ”和“ time_to ”这两个时间戳都以 bigint 格式保存在数据库中。 我在直接数据库中使用搜索选项输入了 ...
[英]Trying to get property of non-object
我收到“试图获取非对象的属性‘selleruserid’”这个错误。 我该如何解决这个错误? 如果你能帮助我,我会很高兴谢谢你 ...
[英]Argument 1 passed to Symfony\Component\HttpFoundation\Request::__construct()
我有这个错误说: 传递给 Symfony\Component\HttpFoundation\Request::__construct() 的参数 1 必须是数组类型,给定的字符串,在第 68 行的 C:\xampp\htdocs\satusehat2\app\Http\Controllers\Pa ...
[英]Controller does not exist in laravel 5.6
我有这个错误,它说 controller不存在我的路线 controller 我试图从 API 获取数据并返回数据 ...
[英]The "--path" option does not exist
--path选项不存在。 我将 Laravel 从 5.8 更新为 Laravel 8。 我不知道出了什么问题。 Artisan::call("migrate")工作正常 ...
[英]page not opening when click the post
当我点击我的票时,它没有打开指定的页面。 单击我的票证链接时,它会在链接中显示正确的票证 ID,但页面打不开。 错误是: 404 未找到 Ticket.blade.php web.php Controller 当我使用“dd”时,它起作用了。 ...
[英]In a UserFactory, I need to write a state method that attaches the user being created (or created) to a many to many "role" object
我想写这样的东西: 不幸的是, id在这个$attributes中不可用,我猜,在工厂的 state 方法中也不可用。 我能做些什么来解决这个问题? ...