In this post, I would like to share a simple Laravel5 Middleware which prevents going back to the previous protected page after Logout by hitting…
9 CommentsAuthor: Praveen Anaparthi
11+ years of IT industry experience holding a wide range of skill sets and roles with significant work on PHP, Node.js, Python, Ruby, Docker, React.js, Microsoft Azure, Azure DevOps, Windows PowerShell, Shell script, Jenkins, MongoDB, SQL, MySQL, Apache, Nginx. etc. It is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.
In this tutorial, I will show you how to add a custom PHP class in Laravel 5.x application. For example, Lets call our class Common.php.…
8 CommentsIn this post, I would like to show how to automatically log out the user after some period of inactivity. Session timeout or Session expire…
15 CommentsEnabling and disabling maintenance mode in Laravel 5 is simple, you just need to issue following artisan commands – To enable maintenance mode php artisan…
Leave a CommentPHP’s built-in Web Server designed specifically for development and testing. Since PHP5.4, CLI SAPI comes with a built-in web server. A Built-in web server makes…
Leave a Commentif ($(‘#myElement’).length > 0) { // it exists }
Leave a Commentif($(‘#myDiv’).is(‘:empty’)) { // do something }
Leave a Comment$(‘#element’).hover( function(){ $(this).addClass(‘hover’) }, function(){ $(this).removeClass(‘hover’) } )
Leave a CommentIn this post I would like to show how you can add text to an image with PHP, GD Library. In this post, we will…
2 CommentsWhen you have web page too long, it is recommended to provide your users easy navigation mechanism.You we can provide it in many ways like…
Leave a CommentAngularJS isArray() is one of the useful ng function. This function is used to identify if a reference is array or not. This function return…
Leave a CommentThe array_change_key_case() function changes all keys in an array to lowercase or uppercase. Syntax: array_change_key_case(array,case); array – The array to work on CASE_LOWER – Default…
Leave a Comment<?php $str=”foo,bar,baz,bat”; $arr=explode(“,”,$str); // print_r($arr); ?>
Leave a CommentBelow function takes hex code (e.g. #eeeeee), returns array of RGB values. function hex2rgb( $colour ) { if ( $colour[0] == ‘#’ ) { $colour…
Leave a CommentToday I got a situation where I need automatically zero filled number. I realized it could be done much str_pad. The reason I am writing…
Leave a Comment