This is a public shared error.
PHP 8.3.6
Call to a member function reminders() on null
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\App;
use Symfony\Component\HttpFoundation\Response;
class SetLocale
{
/**
* Handle an incoming request.
*
* @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
*/
public function handle(Request $request, Closure $next): Response
{
$locale = $request->session()->get('locale');
if ($locale) {
App::setLocale($locale);
}
return $next($request);
}
}
App
Request
http://127.0.0.1/admin
GET
curl "http://127.0.0.1/admin" \
-X GET \
-H 'host: 127.0.0.1:8000' \
-H 'user-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0' \
-H 'accept: */*' \
-H 'accept-language: en-US,en;q=0.5' \
-H 'accept-encoding: gzip, deflate, br, zstd' \
-H 'referer: http://127.0.0.1:8000/admin' \
-H 'content-type: application/json' \
-H 'content-length: 1338' \
-H 'origin: http://127.0.0.1:8000' \
-H 'connection: keep-alive' \
-H 'cookie: <CENSORED>' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-origin' \
-H 'priority: u=4' \
-d {"_token":"LkdOHJAVwSNkJMNvNJIXT4l8efKCBzNeJNmflX4G","components":[{"snapshot":"{\"data\":{\"model\":\"App\\\\Models\\\\Event\",\"selectedUsers\":[[1],{\"s\":\"arr\"}],\"componentFileAttachments\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActions\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActionsArguments\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActionsData\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActionsComponents\":[[],{\"s\":\"arr\"}],\"mountedActions\":[[],{\"s\":\"arr\"}],\"mountedActionsArguments\":[[],{\"s\":\"arr\"}],\"mountedActionsData\":[[],{\"s\":\"arr\"}],\"defaultAction\":[[],{\"s\":\"arr\"}],\"defaultActionArguments\":[[],{\"s\":\"arr\"}],\"record\":[null,{\"class\":\"App\\\\Models\\\\Event\",\"key\":10,\"s\":\"mdl\"}]},\"memo\":{\"id\":\"H8Y0z8V9Vp20DXT6TYVr\",\"name\":\"app.filament.widgets.calendar-widget\",\"path\":\"admin\",\"method\":\"GET\",\"children\":[],\"scripts\":[],\"assets\":[],\"errors\":[],\"locale\":\"en\"},\"checksum\":\"1a5a5bb1df6d46bfdcbe744345ae229f8394c8967a6da87a5e2f39909716b0b6\"}","updates":[],"calls":[{"path":null,"method":"getFormSelectOptions","params":["mountedActionsData.0.associate_id"]},{"path":null,"method":"getFormSelectOptions","params":["mountedActionsData.0.location_id"]},{"path":null,"method":"getFormSelectOptions","params":["mountedActionsData.0.users"]}]}]}
Headers
- host
127.0.0.1:8000
- user-agent
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
- accept
*/*
- accept-language
en-US,en;q=0.5
- accept-encoding
gzip, deflate, br, zstd
- referer
http://127.0.0.1:8000/admin
- content-type
application/json
- content-length
1338
- origin
http://127.0.0.1:8000
- connection
keep-alive
- cookie
<CENSORED>
- sec-fetch-dest
empty
- sec-fetch-mode
cors
- sec-fetch-site
same-origin
- priority
u=4
Body
{
"_token": "LkdOHJAVwSNkJMNvNJIXT4l8efKCBzNeJNmflX4G",
"components": [
{
"snapshot": "{\"data\":{\"model\":\"App\\\\Models\\\\Event\",\"selectedUsers\":[[1],{\"s\":\"arr\"}],\"componentFileAttachments\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActions\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActionsArguments\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActionsData\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActionsComponents\":[[],{\"s\":\"arr\"}],\"mountedActions\":[[],{\"s\":\"arr\"}],\"mountedActionsArguments\":[[],{\"s\":\"arr\"}],\"mountedActionsData\":[[],{\"s\":\"arr\"}],\"defaultAction\":[[],{\"s\":\"arr\"}],\"defaultActionArguments\":[[],{\"s\":\"arr\"}],\"record\":[null,{\"class\":\"App\\\\Models\\\\Event\",\"key\":10,\"s\":\"mdl\"}]},\"memo\":{\"id\":\"H8Y0z8V9Vp20DXT6TYVr\",\"name\":\"app.filament.widgets.calendar-widget\",\"path\":\"admin\",\"method\":\"GET\",\"children\":[],\"scripts\":[],\"assets\":[],\"errors\":[],\"locale\":\"en\"},\"checksum\":\"1a5a5bb1df6d46bfdcbe744345ae229f8394c8967a6da87a5e2f39909716b0b6\"}",
"updates": [],
"calls": [
{
"path": null,
"method": "getFormSelectOptions",
"params": [
"mountedActionsData.0.associate_id"
]
},
{
"path": null,
"method": "getFormSelectOptions",
"params": [
"mountedActionsData.0.location_id"
]
},
{
"path": null,
"method": "getFormSelectOptions",
"params": [
"mountedActionsData.0.users"
]
}
]
}
]
}
Context
User
support@webout.gr
ID: 1
{
"id": 1,
"username": "Webout",
"email": "support@webout.gr",
"email_verified_at": null,
"types": null,
"color": null,
"avatar": null,
"created_at": "2024-11-21T07:21:42.000000Z",
"updated_at": "2024-11-21T07:21:42.000000Z",
"permissions": [],
"roles": [
{
"id": 3,
"name": "super_admin",
"guard_name": "web",
"created_at": "2024-11-21T07:21:42.000000Z",
"updated_at": "2024-11-21T07:21:42.000000Z",
"pivot": {
"model_type": "App\\Models\\User",
"model_id": 1,
"role_id": 3
}
}
]
}
4:33:51 PM
0.940032ms
mysql
select * from `users` where `id` = 1 limit 1
4:33:54 PM
0.27008ms
mysql
select * from `events` where `events`.`id` = 10 limit 1
4:33:59 PM
0.440064ms
mysql
select `permissions`.*, `model_has_permissions`.`model_id` as `pivot_model_id`, `model_has_permissions`.`permission_id` as `pivot_permission_id`, `model_has_permissions`.`model_type` as `pivot_model_type` from `permissions` inner join `model_has_permissions` on `permissions`.`id` = `model_has_permissions`.`permission_id` where `model_has_permissions`.`model_id` = 1 and `model_has_permissions`.`model_type` = App\Models\User
4:34:00 PM
0.389888ms
mysql
select `roles`.*, `model_has_roles`.`model_id` as `pivot_model_id`, `model_has_roles`.`role_id` as `pivot_role_id`, `model_has_roles`.`model_type` as `pivot_model_type` from `roles` inner join `model_has_roles` on `roles`.`id` = `model_has_roles`.`role_id` where `model_has_roles`.`model_id` in (1) and `model_has_roles`.`model_type` = App\Models\User
4:34:02 PM
0.339968ms
mysql
select `username`, `id` from `users`