In this post, I will walk you through, how to Setup Virtual Hosts in Ubuntu. Virtual Hosts are used to setting up more than one…
Leave a CommentTutorials / Programming tips Posts
In this post I would like to show you getting any company logo with the use of Clearbit’s logo API and you can use those…
5 CommentsUpon successful login you can get current user details by called Auth::user() method. It will return null if no user logged in or there is…
2 CommentsIn PHP7 Reserved Word Restrictions was loosen. There are currently 64 keywords reserved by PHP and some of them would be very useful as a…
Leave a CommentIn this post, I would like to write about creating projects on XTRF using web services and PHP. XTRF is one of the most popular…
Leave a CommentI know we can achieve same with other methods but I am going do it with the Laravel’s Middleware. So let’s create Middleware called ForceHttpProtocol.…
2 CommentsIn this post, I am going to share Laravel installation steps. We Can install Laravel by using composer and Laravel installer. Laravel Installer is a…
Leave a CommentOften clients ask for different content types in WordPress. Creating custom post types in WordPress is a lot easier job. A custom post type can…
1 CommentIn this post, I am going show logging arrays and viewing logged items in the terminal in a very generic way. For this tutorial purpose,…
Leave a Comment$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, ‘https://devicecloud.digi.com/ws/v1/devices/inventory’); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FLASE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FLASE); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD, ‘username:password’); $data = curl_exec($ch); curl_close($ch);…
Leave a CommentCORS stands for Cross-Origin Resource Sharing. Origin policy allows only the same origins to share data and this policy will prevent Cross-site Request Forgery attacks.…
6 CommentsI have recently spent some time trying with Laravel queue system, in this tutorial I am going to show you how to get started with…
10 CommentsXTRF is one of the most popular and fastest growing management systems for translation agencies and corporate translation departments. There is no tutorial on the…
3 CommentsVery Laravel developer should know this little trick, using this trick you can define complex conditions on the eloquent relationships. This method chaining helps you…
Leave a CommentRedirect to different landing page after successful login on wordpress admin panel, if user not a super admin. In your theme’s functions.php: function your_login_redirect() {…
1 Comment