walyson_
walyson_
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
Any suggestion?
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
I believe this is exactly the problem. Even though the user is logged into the panel, the post is external, that is, it will not auth()->user()
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
No
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
My insertion is done through an external request. Create a controller to receive this information and then register. I want to use notification just to say that it has been registered.
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
After Create works even when registration is done externally to the filament?
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
Apparently auth()->user() is arriving as null
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
#59 {main}"}
[2024-08-02 18:16:19] local.INFO: Customer created successfully
[2024-08-02 18:16:19] local.ERROR: Filament\Notifications\Notification::sendToDatabase(): Argument #1 ($users) must be of type Illuminate\Database\Eloquent\Model|Illuminate\Contracts\Auth\Authenticatable|Illuminate\Support\Collection|array, null given, called in C:\me2\painel-agro-score\app\Observers\CustomerObserver.php on line 20 {"exception":"[object] (TypeError(code: 0): Filament\\Notifications\\Notification::sendToDatabase(): Argument #1 ($users) must be of type Illuminate\\Database\\Eloquent\\Model|Illuminate\\Contracts\\Auth\\Authenticatable|Illuminate\\Support\\Collection|array, null given, called in C:\\me2\\painel-agro-score\\app\\Observers\\CustomerObserver.php on line 20 at C:\\me2\\painel-agro-score\\vendor\\filament\\notifications\\src\\Notification.php:177)
[stacktrace]
#59 {main}"}
[2024-08-02 18:16:19] local.INFO: Customer created successfully
[2024-08-02 18:16:19] local.ERROR: Filament\Notifications\Notification::sendToDatabase(): Argument #1 ($users) must be of type Illuminate\Database\Eloquent\Model|Illuminate\Contracts\Auth\Authenticatable|Illuminate\Support\Collection|array, null given, called in C:\me2\painel-agro-score\app\Observers\CustomerObserver.php on line 20 {"exception":"[object] (TypeError(code: 0): Filament\\Notifications\\Notification::sendToDatabase(): Argument #1 ($users) must be of type Illuminate\\Database\\Eloquent\\Model|Illuminate\\Contracts\\Auth\\Authenticatable|Illuminate\\Support\\Collection|array, null given, called in C:\\me2\\painel-agro-score\\app\\Observers\\CustomerObserver.php on line 20 at C:\\me2\\painel-agro-score\\vendor\\filament\\notifications\\src\\Notification.php:177)
[stacktrace]
While debugging I found this guy.
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
Only in the customer table.
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
Yes, I'm checking the table
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
The strange thing is that the deletion works. However, it is done through the filament panel
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
I put it on but it didn't work
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
Laravel Framework 10.48.14
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
sync
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
No, I didn't implement a queue
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
I put a dd() inside create and it didn't fire.
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
No description
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
No description
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
Sorry, The correct thing would be:
->sendToDatabase(auth()->user());
->sendToDatabase(auth()->user());
We can ignore the texts for now, I'm doing tests first. When I make the deletion through the table action, the notification works. However, when registration is done through the end-point, it is not displayed.
46 replies
FFilament
Created by walyson_ on 8/2/2024 in #❓┊help
Notifications
Sorry
46 replies
FFilament
Created by walyson_ on 2/28/2024 in #❓┊help
:bangbang: CREATING A FILE MANAGER :bangbang:
All good! Thank you for alerting me to all the possible problems I may have during development.
11 replies