Using a custom user model in Export action

Hi..

I am trying to use Admin model with export action.

I see this documentation: https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export#using-a-custom-user-model

But I am little confused.

use App\Models\Admin;
use Illuminate\Contracts\Auth\Authenticatable;
 
$this->app->bind(Authenticatable::class, Admin::class);


When I should bind this ? In AppServiceProvider ? Can any help me ?

I just want to use App\Models\Admin model instead of user model.
Was this page helpful?