For 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 CommentsTutorials / Programming tips Posts
Blade 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 Commentsgit fetch downloads the latest from remote without trying to merge or rebase anything. Then the git reset resets the master branch to what you…
Leave a CommentBy extending Eloquent we can inherits all of the existing functionality to our model. By Extending newly created Base Model we can inherits custom methods…
2 CommentsHere is the simple PHP function for testing given data is null or empty string. function IsNullOrEmptyString($data){ return (!isset($data) || trim($data)===”); }
Leave a CommentWe can achieve this in several way , but i would like to share this below approach because it is very simple,easy and more readable.…
1 CommentCodeigniter didn’t provide an option to use subqueries with active record class. So today I would like to provide simple and possible comprehensive techniques on…
4 CommentsIn this post, I would like to list basic to advanced database queries using ZF2. I am gonna use TableGateway methods here. Simple Select Query…
4 CommentsRecently i got “too many connections” errors in MySQL, after quick research i found a solution to fix this issue.This issue due to connection limit…
Leave a CommentHere the simple AngularJS tutorial on creating Cascading DropDownList with Angular JS. Country: Select States: Select City: Select
9 CommentsIn this post i would like to write about Angular JS ngClassOdd,ngClassEven directives , by using this directories we can take effect only on odd…
1 Comment