Category : laravel

The project uses: Backend: Laravel 8 for the API and Nodejs 16.10.0 for angular server side rendering. Front: Angular 12.01 Description of the problem: I’m using Apache for serving my Laravel API and Reverse-proxying the Nodejs server that returns the frontend. I use pm2 to start the node process. I do have another node process ..

Read more

I have used Angular-11 for frontend and Laravel-8 for backend in a project. When user signup, there will be notification to activate. Laravel: public function toMail($notifiable) { return (new MailMessage) ->subject(‘Confirm your account’) ->line(‘Thanks for signup! Please before you begin, you must confirm your account.’) ->action(‘Confirm Account’, url(‘https://myapp/auth/signup-activate?token=’.$notifiable->activation_token)) ->line(‘Thank you for using our application!’); } ..

Read more

I have a project on Angular-11 and Laravel-8 This is what I have: Laravel: env: APP_URL=https://api.myapp.com DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=hrms DB_USERNAME=myusername DB_PASSWORD=mypassword Angular: environment.ts: export const environment = { production: false, baseUrl: window.location.origin, // Base URL here apiUrl: ‘http://localhost:8888/myapp’, //your local API URL here }; environment.prod.ts: export const environment = { production: true, baseUrl: window.location.origin, ..

Read more

I need to turn my laravel api + angular sanctum authentication into a SAML authentication. I’ve noticed that I need to use a laravel plugin like laravel-saml2 or laravel-saml2. (Yes… Same name but different plugins) I intend to use OKTA because I am already using it to authenticate in my Stack ELK. But my biggest ..

Read more