The Collection class in Laravel is really awesome. In Laravel, Eloquent returns result in the collection object. The class contains a lot of handy methods…
Leave a CommentMonth: August 2015
Some browsers like IE doesn’t allow cross-domain fonts by default – unless you set a Access-Control-Allow-Origin header to the font. cross-domain fonts mean fonts that…
1 CommentThe Request facade will grant you access to the current request that is bound in the container.Remember, if you are in a namespace, you will…
Leave a CommentSometimes you may want send the rendered view in the ajax response instead of showing on the browser. To return html in the ajax response…
2 CommentsIn this post, I want to show you how to send emails using PHPMailer with GoDaddy SMTP details. Godaddy requires you to utilize its SMTP…
19 CommentsOne of the Laravel 5 awesome feature is Attribute casting. Casting attribute means changing the attribute values to a particular type. for example Boolean, integer,…
Leave a Commentvar capitalizeMe = “capitalize the first letter of a string in javascript”; var capitalized = capitalizeMe[0].toUpperCase() + capitalizeMe.substring(1); console.log(capitalized); // Capitalize the first letter of…
Leave a CommentIn this post I would like to share with you code snippet, which you can use to flatten nested array into one array with string…
Leave a CommentLogin Throttling is also called rate limiting which is very useful to increase the security of the application by protecting login form. Basically the…
2 CommentsYou often have to display money numbers in business applications like eCommerce apps. So in general we fetch the value from the database and print…
1 CommentLaravel 5.1 makes it easy to disabling CSRF token check.Sometimes you may wish to exclude a set of URIs from CSRF protection. For example, if…
Leave a CommentFrom Ruby on Rails developers “Ruby on Rails® is an open-source web framework that’s optimized for programmer happiness and sustainable productivity. It lets you write…
Leave a CommentIn this post I would like to write about MySQL trim()function.MySQL trim() function removes the specified characters from beginning and ending of the string and…
Leave a CommentYou can use either the MySQL UPPER() or LOWER() functions to format columns in your SQL SELECT statements or you can use these functions in…
Leave a Comment