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…
Leave a CommentMonth: February 2015
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 ,…
2 CommentsFor Creating cookies in Laravel we use Cookie::make() method and for reading cookie we use Cookie::get() method. Basically the Cookie::get() method is a wrapper over…
3 CommentsBlade did not provided a way to define variables.But you can extend blade by using extend method as shown below Blade::extend(function($value) { return preg_replace(‘/\@var(.+)/’, ”,…
1 CommentToday i would like to write about Laravel Eloquent’s Query Scopes , Query scopes are allow us to re-use query logic by allowing us to…
Leave a CommentUsing array_map() function is pretty simple in procedural style coding in PHP, while coding in object oriented fashion is also easy but bit tricky. So…
Leave a CommentIn this post, I want to show you some basic tips for redirecting users back to the original destination path or some defined path with…
4 CommentsArray 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…
3 Comments