Hi,
I downloaded the latest release metronic_laravel_v8.2.3 which is used "laravel/sanctum": "^3.3". I want to use laravel/passport and want to remove laravel/sanctum.
I tried with this command: composer remove laravel/sanctum. After executing this command try to run "npm run dev" and then get some error.
so my issue is: how to remove "laravel/sanctum": "^3.3" from the latest release v8.2.3
and then the second question is if I remove the sanctum and install laravel/passport package in that case login will work or not?
if not work login then what should I modify?
Thanks
Switching from Laravel Sanctum to Laravel Passport is essential when your application needs advanced OAuth2 features like token expiration, scopes, and multiple grant types. While Sanctum is simple and suitable for SPAs, Laravel Passport offers robust security for complex use cases, such as integrating third-party services or managing sensitive data like in a DFA Passport Tracker . The transition involves setting up OAuth2 flows and reworking authentication processes for greater scalability and control.
The warning you're seeing after running npm run dev is related to compiling SCSS files and can be safely ignored. However, if you prefer to suppress the warning, you can add the following configuration to your webpack.mix.js file:
mix.webpackConfig({
//....
stats: {
warnings: false
}
});
Hi Razib Ahmed
Sorry for the delay in response. Thank you for letting us know about the issue. We will double-check it. This issue is seems specifically happens in Windows.
Do you get any specific errors when running npm run dev?
Thank you
Hi,
after executing the 'npm run dev' i am getting bellow warning msg:
1 WARNING in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
webpack compiled with 1 warning