-
Concurrent user login in Laravel
To implement concurrent logins in Laravel, you can use Laravel’s built-in session and authentication features. Here’s a general approach to achieving this requirement: in login blade.php In LoginController.php UserRepo code Add Middleware for file if you use driver file then need add last_activity_at,’ip_address’,’user_agent’ column. and on logut function add Continue reading
-
Arrow function vs normal function in javascript.
In JavaScript, there are two main ways to define functions: using normal function syntax and using arrow function syntax. Here are the differences between them: Arrow Function: An arrow function is defined using a shorter syntax using the => arrow operator. It does not have its own this value and is always anonymous. Example: It’s… Continue reading
-
Create card game using html & javascript
In this game, you need to guess whether the next card drawn from a deck will be higher or lower than the current card. Continue reading
-
OrderBy on Eloquent relationships Laravel
In Laravel’s Eloquent ORM, you can use the orderBy method to order the results of a query based on a specific column. This applies to relationships as well. Continue reading
-
lazy loading vs eager loading in Laravel
e main difference between lazy loading and eager loading is that lazy loading allows you to defer the loading of related data until it is actually needed…….. Continue reading
-
Application structure of Laravel
Laravel is a PHP web application framework that follows the Model-View-Controller (MVC) architectural pattern. It provides a robust set of tools and features that make it easy to develop web applications quickly and efficiently. Continue reading
-
Routing in Laravel?
All Laravel routes are defined in your route files, which are located in the routes directory. The routes/web.php file defines routes that are for your web interface.which provides features like session state and CSRF protection. Router Methods:- Route::get($uri, $callback); Route::post($uri, $callback); Route::put($uri, $callback); Route::patch($uri, $callback); Route::delete($uri, $callback); Route::options($uri, $callback); ex.Route::get(‘/’,function(){ echo “Jay baldeo” }) Route… Continue reading
-
What is REPL and How to use it in node js?
REPL same as cmd when in cmd you will type node and press enter . this is easy way to experiment with JavaScript code. Continue reading
-
What and When Node js?
Node.js is widely used for building scalable network applications, especially those that involve real-time data streaming. It also provides a rich library of modules that simplify web development tasks, Continue reading
About Me
Welcome to my blogging website! My name is Prashant Pandey, and I am a passionate software developer with extensive experience in building innovative and user-friendly web applications. With a focus on PHP-based content management systems and frameworks, I create engaging and informative blog posts that share my knowledge and insights with the wider community.