Category: laravel
NVM Activation error
When you install nvm latest verion and want to swith the node to use the latest verion , you get the activation error as below: >> nvm install 22.13.1 Installation complete. If you want to use this version, type: nvm use 22.13.1 >> nvm use 22.13.1 exit status 1: ‘C:Program’ is not recognized as an internal or…
Read MoreImplementation of seamless authentication between two Laravel apps
When a user logs in to one application, they should also be authenticated in other application without logging in again. 1. Use a Common Authentication System Ensure both Laravel apps share the same user database (either directly or via API). 2. Use tymon/jwt-auth in both apps Install JWT package in both: composer require tymon/jwt-authphp artisan…
Read MoreImplementation of Tabview in Laravel
To create a tabbed view in Laravel Blade for “My Organizations” and “All Organizations,” you can use Bootstrap, a popular CSS framework. Below is an example: Steps: Add Bootstrap CSS and JS:Include the Bootstrap CSS and JS files in your Blade layout file, e.g., app.blade.php. <link href=”https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css” rel=”stylesheet”><script src=”https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js”></script> Create a Blade File with Tabs:Create…
Read MoreEstimating the development timeline for an API when SQL queries are ready
Estimating the development timeline for an API when SQL queries are ready involves evaluating several factors. Here’s a step-by-step approach: 1. Define API Scope Number of Endpoints: Count how many API endpoints need to be created. Complexity per Endpoint: Consider if endpoints are simple (e.g., a single query) or complex (e.g., require multiple queries or…
Read MoreAllowed memory size of 134217728 bytes exhausted (tried to allocate 20971520 bytes) while accessing a page of the site
Fatal Error: Allowed Memory Size of 134217728 Bytes Exhausted error in my web application, while accessing a page. To solve this issue, we have to do a configuration change in php.ini of our web server. Follow these steps to update memory limit to resolve this error from the Mac/Ununtu terminal: Determine PHP version from terminal…
Read MoreHow to get the auto incremented id after adding the data in mysql
In one of the project we were working on, we had a situation, where we need to add a record to the table of the database. The added record id is auto incremented in database. This id needs to added to another table with some more data. Now the issue here is how to get…
Read More