This is a public shared error.
PHP
Filament\Resources\Pages\CreateRecord::associateRecordWithTenant(): Return value must be of type Illuminate\Database\Eloquent\Model, bool returned
|
| Composer provides a convenient, automatically generated class loader for
| this application. We just need to utilize it! We'll simply require it
| into the script here so we don't need to manually load our classes.
|
*/
require __DIR__.'/../vendor/autoload.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request using
| the application's HTTP kernel. Then, we will send the response back
| to this client's browser, allowing them to enjoy our application.
|
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
$kernel = $app->make(Kernel::class);
$response = $kernel->handle(
$request = Request::capture()
)->send();
$kernel->terminate($request, $response);
App
Request
http://localhost/app/dwa/categories/create
GET
curl "http://localhost/app/dwa/categories/create" \
-X GET \
-H 'host: localhost' \
-H 'accept: */*' \
-H 'cookie: csrftoken=sjHtAwprsq6ghs4wGTdn6lqrfs8ZrKhf; XSRF-TOKEN=eyJpdiI6IkdXc0VXT2NTV3ltWkppenkxd3BDQmc9PSIsInZhbHVlIjoiWWlFemFoVU92TE9oVHRHVlk0NzhJSHVQL2t0NWpFdUlHQTJmZFMxck9HWGZmVUFlVlBIOWpUbnlkUGg1cGM5ZzRwei9BTDc1V285SGpvY2p0bGhNdjZjRFhGN0hzRU1vYTF1ZjdRYmMwRmV0b2NKR245M3hlVG1oN0xtZ2hNalciLCJtYWMiOiJhMjM3NDE3OWMxZjA3NzI2YmNjYWMwY2NjZWU0MzRjZGEwYTgxZDM4Y2M1NjU1MjhkMTgxYThlZWViZmI4MmNjIiwidGFnIjoiIn0%3D; netaxe_session=eyJpdiI6InZTZW4rTU8xZ1FRUEpudGVwc2g0YlE9PSIsInZhbHVlIjoiVU1Denp0eHdVd3Ivdm9DMGFaeWM3NjhSQkkzdndrYWlnVzU0VXVFZTIxL0huNjE5akIxVUtieVI3TGgvSGdKSEtaL1hVbWNYQTNnSm9xblU2SVR2OWE1Nm1aN0VQdnBieFhDbGl4bGhUK0R4d1JEQUUvSlFPWlh4WU9BTjdhRzgiLCJtYWMiOiJlY2Q3YTNmZjIyN2M5YWM4Mzc3ZTQ3NTA4ZWM4N2E2MmU4OWNlYmY2MjY2ZGU0YzkzZTE0ZWVjMjY3MDZmZGI5IiwidGFnIjoiIn0%3D' \
-H 'origin: http://localhost' \
-H 'referer: http://localhost/app/dwa/categories/create' \
-H 'sec-gpc: 1' \
-H 'sec-ch-ua: "Chromium";v="116", "Not)A;Brand";v="24", "Brave";v="116"' \
-H 'connection: keep-alive' \
-H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36' \
-H 'content-type: application/json' \
-H 'content-length: 1093' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: same-origin' \
-H 'accept-encoding: gzip, deflate, br' \
-H 'accept-language: en-US,en;q=0.9' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Windows"' \
-d {"_token":"RMjqieIN1wo6t29fhXz2UMgdLdPLSdTM6pL3nAk0","components":[{"calls":[{"path":null,"method":"create","params":[]}],"updates":{"data.name":"daw","data.slug":"dwa"},"snapshot":"{\"data\":{\"record\":null,\"data\":[{\"parent_id\":null,\"name\":null,\"slug\":null,\"description\":null},{\"s\":\"arr\"}],\"previousUrl\":\"http:\\/\\/localhost\\/login\",\"mountedActions\":[[],{\"s\":\"arr\"}],\"mountedActionsArguments\":[[],{\"s\":\"arr\"}],\"mountedActionsData\":[[],{\"s\":\"arr\"}],\"componentFileAttachments\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActions\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActionsArguments\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActionsData\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActionsComponents\":[[],{\"s\":\"arr\"}]},\"memo\":{\"id\":\"Ro8uB64jLJvEQ1de4V6w\",\"name\":\"app.filament.app.resources.category-resource.pages.create-category\",\"path\":\"app\\/dwa\\/categories\\/create\",\"method\":\"GET\",\"children\":[],\"errors\":[],\"locale\":\"en\"},\"checksum\":\"3a62e9a65bea7557e4be1f40d41d9d15841a0c2927493f8a275a4416f51be33e\"}"}]}
Headers
- host
localhost
- accept
*/*
- cookie
csrftoken=sjHtAwprsq6ghs4wGTdn6lqrfs8ZrKhf; XSRF-TOKEN=eyJpdiI6IkdXc0VXT2NTV3ltWkppenkxd3BDQmc9PSIsInZhbHVlIjoiWWlFemFoVU92TE9oVHRHVlk0NzhJSHVQL2t0NWpFdUlHQTJmZFMxck9HWGZmVUFlVlBIOWpUbnlkUGg1cGM5ZzRwei9BTDc1V285SGpvY2p0bGhNdjZjRFhGN0hzRU1vYTF1ZjdRYmMwRmV0b2NKR245M3hlVG1oN0xtZ2hNalciLCJtYWMiOiJhMjM3NDE3OWMxZjA3NzI2YmNjYWMwY2NjZWU0MzRjZGEwYTgxZDM4Y2M1NjU1MjhkMTgxYThlZWViZmI4MmNjIiwidGFnIjoiIn0%3D; netaxe_session=eyJpdiI6InZTZW4rTU8xZ1FRUEpudGVwc2g0YlE9PSIsInZhbHVlIjoiVU1Denp0eHdVd3Ivdm9DMGFaeWM3NjhSQkkzdndrYWlnVzU0VXVFZTIxL0huNjE5akIxVUtieVI3TGgvSGdKSEtaL1hVbWNYQTNnSm9xblU2SVR2OWE1Nm1aN0VQdnBieFhDbGl4bGhUK0R4d1JEQUUvSlFPWlh4WU9BTjdhRzgiLCJtYWMiOiJlY2Q3YTNmZjIyN2M5YWM4Mzc3ZTQ3NTA4ZWM4N2E2MmU4OWNlYmY2MjY2ZGU0YzkzZTE0ZWVjMjY3MDZmZGI5IiwidGFnIjoiIn0%3D
- origin
http://localhost
- referer
http://localhost/app/dwa/categories/create
- sec-gpc
1
- sec-ch-ua
"Chromium";v="116", "Not)A;Brand";v="24", "Brave";v="116"
- connection
keep-alive
- user-agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
- content-type
application/json
- content-length
1093
- sec-fetch-dest
empty
- sec-fetch-mode
cors
- sec-fetch-site
same-origin
- accept-encoding
gzip, deflate, br
- accept-language
en-US,en;q=0.9
- sec-ch-ua-mobile
?0
- sec-ch-ua-platform
"Windows"
Body
{
"_token": "RMjqieIN1wo6t29fhXz2UMgdLdPLSdTM6pL3nAk0",
"components": [
{
"calls": [
{
"path": null,
"method": "create",
"params": []
}
],
"updates": {
"data.name": "daw",
"data.slug": "dwa"
},
"snapshot": "{\"data\":{\"record\":null,\"data\":[{\"parent_id\":null,\"name\":null,\"slug\":null,\"description\":null},{\"s\":\"arr\"}],\"previousUrl\":\"http:\\/\\/localhost\\/login\",\"mountedActions\":[[],{\"s\":\"arr\"}],\"mountedActionsArguments\":[[],{\"s\":\"arr\"}],\"mountedActionsData\":[[],{\"s\":\"arr\"}],\"componentFileAttachments\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActions\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActionsArguments\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActionsData\":[[],{\"s\":\"arr\"}],\"mountedFormComponentActionsComponents\":[[],{\"s\":\"arr\"}]},\"memo\":{\"id\":\"Ro8uB64jLJvEQ1de4V6w\",\"name\":\"app.filament.app.resources.category-resource.pages.create-category\",\"path\":\"app\\/dwa\\/categories\\/create\",\"method\":\"GET\",\"children\":[],\"errors\":[],\"locale\":\"en\"},\"checksum\":\"3a62e9a65bea7557e4be1f40d41d9d15841a0c2927493f8a275a4416f51be33e\"}"
}
]
}
Context
User
me@nicjac.dk
ID: 1
{
"id": 1,
"zip": null,
"city": null,
"name": "Nicolai",
"email": "me@nicjac.dk",
"phone": null,
"roles": [
{
"id": 1,
"name": "Global Administrator",
"slug": "global-administrator",
"pivot": {
"role_id": 1,
"user_id": 1
},
"created_at": "2023-09-05T14:30:17.000000Z",
"updated_at": "2023-09-05T14:30:17.000000Z",
"description": "Global Administrator"
}
],
"state": null,
"address": null,
"country_id": null,
"created_at": "2023-09-05T14:30:30.000000Z",
"updated_at": "2023-09-05T14:30:30.000000Z",
"email_verified_at": null
}
10:57:09 AM
3.049984ms
mysql
select * from `users` where `id` = 1 limit 1
10:57:13 AM
0.59008ms
mysql
select `roles`.*, `role_user`.`user_id` as `pivot_user_id`, `role_user`.`role_id` as `pivot_role_id` from `roles` inner join `role_user` on `roles`.`id` = `role_user`.`role_id` where `role_user`.`user_id` = 1
10:57:15 AM
0.450048ms
mysql
select * from `organizations` where `slug` = dwa and `organizations`.`deleted_at` is null limit 1