To disable the default migrations for the `MoonshineUser` model in Moonshine, you need to modify the configuration file located at `config/moonshine.php`. Here are the steps:
1. Open the Configuration File: Locate the `config/moonshine.php` file in your Laravel project.
2. Set the `use_migrations` Option: Find the line that specifies the `use_migrations` option and set it to `false`. This will prevent Moonshine from running its default migrations for the `MoonshineUser` model.
Here is how the relevant section of your configuration file should look:
php
return [
// Other configurations...
'use_migrations' => false, // Disable default migrations
// Other configurations...
];
By setting `use_migrations` to `false`, you can manage your own migrations for user authentication and any other necessary database tables without interference from Moonshine's default setup[1][4].
Citations:[1] https://moonshine-laravel.com/docs/resource/getting-started/configuration
[2] https://github.com/moonshine-software/permissions
[3] https://moonshine.cutcode.dev/section/configuration
[4] https://moonshine-laravel.com/docs/resource/advanced/advanced-authentication
[5] https://moonshine.cutcode.dev/section/advanced-authentication
[6] https://v5-docs.adonisjs.com/guides/database/migrations
[7] https://www.youtube.com/watch?v=fCGEd87ieEQ
[8] https://github.com/pocketbase/pocketbase/discussions/4400