mvpopuk
mvpopuk
Explore posts from servers
FFilament
Created by mvpopuk on 9/9/2024 in #❓┊help
Roles and permissions
Anyone ?
3 replies
FFilament
Created by mvpopuk on 8/30/2024 in #❓┊help
two forms one page
Thank you @awcodes that fixed my problem 🙂
3 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
Thanks a lot for your help
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
yes. It looks like it's working now. not sure what I did 😄
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
Now when I start the queue I get No [App\Models\User] model found. Please bind an authenticatable model to the [Illuminate\Contracts\Auth\Authenticatable] interface in a service provider's [register()] method
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
I now added it to a Filament::serving() but same problem
Filament::serving(function () {
$this->app->bind(Authenticatable::class, User::class);
});
Filament::serving(function () {
$this->app->bind(Authenticatable::class, User::class);
});
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
app > Providers > AppServiceProvider.php > register()
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
inside the register method
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
well it is in Laravel's app service provider
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
but I still get the same errro
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
in AppServiceProvider I added the following: $this->app->bind(Authenticatable::class, User::class);
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
/filament/actions/src/Exports/Models/Export.php:54
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
No [App\Models\User] model found. Please bind an authenticatable model to the [Illuminate\Contracts\Auth\Authenticatable] interface in a service provider's [register()] method. {"exception":"[object] (Exception(code: 0): No [App\\Models\\User] model found. Please bind an authenticatable model to the [Illuminate\\Contracts\\Auth\\Authenticatable] interface in a service provider's [register()] method.
No [App\Models\User] model found. Please bind an authenticatable model to the [Illuminate\Contracts\Auth\Authenticatable] interface in a service provider's [register()] method. {"exception":"[object] (Exception(code: 0): No [App\\Models\\User] model found. Please bind an authenticatable model to the [Illuminate\\Contracts\\Auth\\Authenticatable] interface in a service provider's [register()] method.
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
ok let me remove that and get the original error one sec
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
ok it is getting App\User
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
where would be the best place to check this ?
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
Nope
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
and I tried this:
Route::get('/test-filament-user', function () {
if (filament()->auth()->check()) {
$user = filament()->auth()->user();

return get_class($user);
}

return 'No authenticated user';
});
Route::get('/test-filament-user', function () {
if (filament()->auth()->check()) {
$user = filament()->auth()->user();

return get_class($user);
}

return 'No authenticated user';
});
And it hits the return statement "No authenticated user"
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
Route::get('/test-filament-user', function () {
$user = filament()->auth()->user();

return get_class($user);
});
Route::get('/test-filament-user', function () {
$user = filament()->auth()->user();

return get_class($user);
});
Tried this and it returns null
59 replies
FFilament
Created by mvpopuk on 7/26/2024 in #❓┊help
Database notifications not working
<?php

namespace App\Models;

use App\User as BaseUser;

class User extends BaseUser
{
// This is for filament
}
<?php

namespace App\Models;

use App\User as BaseUser;

class User extends BaseUser
{
// This is for filament
}
59 replies