Categories
Laravel

How to Detect Ajax Request in Laravel 4

Laravel’s Request class provides many methods for reading the HTTP request of the current request. One of these function is named ajax(). Using this function We can check the request type under controllers or route filters..etc. See the below example script. Check for Ajax request in Laravel application That’s it.

Categories
PHP / MySQL

How to remove specific element from an array in PHP?

Here is the simple quick post about removing specific element from an array using php.In this example we are going to use array_search() function , it will return match value key ,based on returned key by using unset() function we can delete/ unset the element from the array.Simple isn’t it. Example : How to use […]

Categories
Laravel

Redirect back to original destination after login in Laravel

In this post i want to show you some basic tips for redirecting user back to original destination path or some defined path with simple steps. If you want to send user to previous original destination URL after login.Laravel stores and updates the each entry page in the Session,so as soon as a login is […]

Categories
PHP / MySQL

PHP array_map for multidimensional arrays

Array map is one of the interesting PHP’s array function. But it will not work with multidimensional arrays as expected.So in this post, I would like to share a simple alternative technique for array_map(). Our function will work like array_map but it will support multidimensional arrays. Here we used recursive function methodology and the Ternary […]

Categories
AngularJS

Dependent Dropdown List with AngularJS

Here the simple AngularJS tutorial on creating Cascading DropDownList with Angular JS.

Categories
AngularJS

How to assign alternate class to rows in Angular JS?

In this post i would like to write about Angular JS ngClassOdd,ngClassEven directives , by using this directories we can take effect only on odd rows or on even rows. This directives work exactly as ngClass and this directives only work when they are in scope of an ngRepeat. For example by using ngClassOdd,ngClassEven directives […]

Categories
AngularJS

Custom filters in AngularJS

This tutorial will show you, creating your own custom filters in AngularJS with simple steps and example. Angular filters provides a way to format the variable output without changing scope variable. Whenever possible use filters to keep presentation logic out of the controllers. Angular providing a .filter() method for each module. We can write your […]