Overview of Laravel Mailable

By: webadmin

If we think of building an application whether it is Portfolio, blog, E-commerce or Marketing. Sending an email through the application is the basic requirement. It may be in the form of contact us page, Newsletter Subscription, Notifications or any other.

Let’s have a piece of basic knowledge on how laravel handles it.

Laravel makes use of the popular SwiftMailer library, which is easy to use and has a variety of email drivers. By default, Laravel uses SMTP mail. but you can also choose from sendmail, mailgun, mandrill, etc.. Wrapper is implemented on top of the SwiftMailer library that makes email management very easy to configure and use at the same time. Default mail settings are configured at config/mail.php
Before laravel introduce “Mailable” class in version 5.3 it was implemented using the Mail::send method like below, which will send the mail at a time. But, what if you have a huge number of users and want to send mail in bulk, if you use the above method will take much time to get processed will result in increased execution time.
There is a way to overcome it by queuing your mail in backend process. and now here laravel introduce Mailable class (for version 5.3 and above) that comes with a way to achieve it using “queue” method.


Mailables are PHP classes in Laravel 5.3 & above that represent a single email. It is responsible for sending emails using a mailer. It’s configured in the config/mail.php file. In fact, Laravel by default provides an artisan command that allows us to create a base template. See the below example we use to generate for NotifyUser mailable class.php artisan make:mail NotifyUserAfter running above command, you will see a file NotifyUser.php in following directory app/Mail.If you open your file named NotifyUser.php, you will get the “build” method within it. All the email-specific configuration will be done in the “build” method of the class.we can call various methods like from(), cc(), bcc(), subject(), view(), attach(), attachData(), etc…
Below is the sample of build method,
Now, whenever we want to send the mail. we can call as below within the controller
Mail::to($user)->send(new NotifyUser);
As I said earlier, In addition to all the above features, you can also use a queue, add cc & bcc and many more.

Queue Feature

For the queue feature to be used, we can use the queue()method on the Mail facade after specifying the message’s recipients. see the below example.
Mail::to($user)->queue(new NotifyUser);
but, we need to configure our queue first before using it. you can set it up using different drivers like database, Amazon SQS or redis. I usually prefer database one as is more convenient for me.
You can also use the later() method if you want to delay the delivery of the queued email.
$when = Carbon\Carbon::now()->addMinutes(20);
Mail::to($user)->later($when, new NotifyUser);

It also provides the feature of localization. In Laravel, you can send mailable in a locale other than the current language, and will even remember this locale if the mail is queued.
Mail::to($user)->locale(‘es’)->send(new NotifyUser($infodata));


So, after all, Mailable is not rocket science to be used. But definitely, it makes our job much easier where emails are the primary medium of user-interaction for any application.
If you have any query, we are here for you to assist you. We have an efficient team of Laravel developers that can take you to achieve amazing experience with your Web/Mobile application development with the quality product in a cost-effective way.Take a tour for the services provided by us and get in touch.


How to find your iPhone/iPad UDID?

By: webadmin

Every iPhone, iPod Touch and iPad has a unique identifier number associated with it, known as UDID(Unique Device ID). UDID is a 40 digit sequence of letters and numbers that look like this:

Finding Your UDID Using iTunes

1. Connect your iPhone/iPad to a computer via USB and open iTunes.

2. Click its name under the devices list. Ensure you’re on the Summary tab.

3. Click on the text that says Serial Number. It should change to say Identifier(UDID).

4. Select Copy from the Edit Menu. Your UDID is now in the clipboard,so you can paste it into an email or message.

Download and Install iTunes for Windows

1. Launch you favourite web browser from the start menu, Taskbar or Desktop. Navigate to

2.Click download and click Get if from Microsoft.

3.Microsoft Store will open and install iTunes.

Find UDID Without iTunes

1.Open the site in Safari on your iPhone or ipad.

2. Allow the permission to download the Configuration file.

3. Review the Profile Downloaded in Setting App.

4.Install the Profile.

5.Enter Your Passcode.

6.Click Install.

7.Now your UDID is in front of you.

App Development


By: webadmin

HATEOAS is an abbreviated form of Hypermedia As The Engine Of Application State. It is the approach of the REST application architecture that keeps the RESTful style architecture unique from most other network application architectures. It provides a connection through hypermedia.The Hypermedia term is used for any content that contains links to other forms of media such as text, images, and movies.


Whenever we explore any web page in addition to the informative data, it also gives us the links of available actions we can perform. If we think about the typical REST API – it will return the data in response based on the request. So, the thought comes in our mind how it would be if something similar to the web page can happen in REST API so we can explore the API without prior knowledge of the entire API document and URL Structure.

Here, the HATEOAS comes with the approach to build the REST API where the user can dynamically explore the available actions they can perform at runtime from the server. All the User need is the initial URL. REST architectural style lets the developer use hypermedia links in the response contents so that the user can dynamically navigate to the appropriate resource through the hypermedia links. conceptually the same as a web user browsing through web pages by clicking the relevant hyperlinks to achieve a final goal.

Once the Initial URL is loaded, All the Upcoming application state transitions will be held by a user selecting from the choices provided by the server based on the state of an application at that time.

Let’s go through the simple example for the employee object and the response for the Simple REST service and HATEOAS Service for the same API call.

Initial URL:localhost:8080/employee/11

Response from HATEOAS Service

So, in the above example, you can see the HATEOAS service Response with the referral links with the various activities available for the state of an employee at that time like person, membership, and self. If no membership is available for an employee then it will not return the link of membership.

The “rel” stands for the relationship that gives information about how the link relates to the requested object. And “href” gives the action URL that describes how the action can be performed. So, Basically HATEOAS = Data + Links.

With all the above information i am sure you must have the basic idea of the HATEOAS service. If you still have any queries, we are here to help you. Take a tour of the services provided by us and get in touch.

App Development

iOS 13 New Features

By: webadmin

iOS 13
A Whole new look.
On a whole new level.

iOS 13 introduces a bold new look, major updates to the apps you use every day, new ways to help you protect your privacy, and improvements across the entire system that make your iPhone even faster and more delightful to use.
iOS 13 Dark Mode
Dark Mode in iOS 13 is going to be system-wide, meaning it’ll change the hues from bright white and light grey to black and dark gray on all supported apps. That’s going to be a nice feature when you’re using your iPhone at night and want to avoid bright white hues.
It may also save battery life on the OLED-equipped iPhones, from the iPhone X onward.
Apple didn’t talk about this at all, but we know that OLED displays essentially ‘turn off’ pixels when rendering blacks.
Turning on iOS 13 Dark Mode can be done in Control Centre, according to Apple, or you can set it automatically to turn on at night. Night shift finally gets a companion, and a lot of people couldn’t be happier.
iOS 13 features a QuickPath keyboard
With iOS 13, Apple’s default QuickType keyboard will be incorporating swipe-to-type, a popular way of sliding across the keyboard to form words. We’ve used this in prior iOS keyboard extensions like Google’s Gboard and SwiftKey.
You can use the QuickType and QuickPath methods of typing interchangeably, and so far supported languages include English, Simplified Chinese, Spanish, German, French, Italian, and Portuguese is now included.
The iOS 13 is going to offer important changes to camera features, starting with enabling you to change the intensity of light in Portrait Mode, which is something we’ve wanted for a while. Portrait mode is also getting a new monochromatic effect called High‑Key Mono.
The Photos gallery is becoming what Apple called “a diary of your life”, with a new tab designed to document your best photos by day, month and year. You’ll also have more pinch controls to zoom in and out of the Photos gallery.
The photo apps will automatically organise photos by year, month and date, which will make it easier for you to find photos.
Live photos and videos play as you scroll.
iOS 13 Maps looks a lot better, even if everyone likes to hate on it. Will it ever be better than Google Maps? No, probably not. But for people who want Apple’s pre-loaded maps app on iOS 13, it’ll be much better.
There’s way more detail here by way of Apple rebuilding maps from the ground up. There’s more realistic detail for roads, beaches, parks, and buildings, and you can now explore cities with a 3D 360-degree experience.
Favourites were a part of Maps before, but iOS 13 makes these saved locations easier to navigate to with one tap – they appear at the very top of a search menu. Sometimes Google Maps on iOS doesn’t get this right (but does better on Android). That’s one reason to keep Apple Maps installed, even if you’re a Google Maps person.
Of all the built-in apps, Reminders is getting the biggest revamp in iOS 13. It appears to be better organized, and includes shortcuts that make it easier to add reminders.
Big, colour-coded buttons for Today, Scheduled, All and Flagged categories offer you a better oversight of your pressing tasks, while the keyboard when you’re in this app has a top-line Quick Toolbar that acts as a shortcut to easily add times, dates, locations, flags, photos and scanned documents.
Making plans in Messages? Siri will step into suggest reminders that can be created, like a personal assistant who chimes in at all the right times.
Apple is putting more of ‘Me’ in Memoji, allowing one trillion configurations: new hairstyles, headwear, makeup, and piercings to name a few categories. Examples on the WWDC stage showed that these personalised Animoji masks allow for such granular accessory detail as eyeshadow, braces and even AirPods.Memoji Stickers are something entirely new – iOS 13 will bring more iPhone and iPad users into the Memoji fold, True Depth camera or not.
You can customise a Memoji and iOS 13 will automatically create a fun-looking sticker pack that lives in a sub-menu on the keyboard, which you can use in Messages, Mail, and third‑party apps.
You’ll be able to share your personalised Memoji with contacts through iMessages, but only when you grant them access.
Apple is combining Find My Friends and Find My iPhone in iOS 13, and the union lets you locate your friends and missing gadgets with a faster, easier-to-use interface.
What’s really neat is that it’ll use a crowd-sourced encrypted Bluetooth signal to help you track down devices that aren’t connected to Wi-Fi or cellular. That’s mostly a big help for Macs, but it could also help with an iPhone in rare cases,too.
Apple is adding a new Sign In with Apple privacy feature, that gives you a convenient and data safe way to sign into apps and websites. Your Apple ID will be able to authenticate your account via Touch ID or Face ID, and developers will see a unique random ID rather than your real info.
Apple can even generate single-use randomized email addresses, so you never have to give your real email address away to an app again. Two-factor authentication is built in to this feature to give you even more security. Apple is taking on Facebook Connect, Google and other platforms that allow you to conveniently sign in to third-party accounts. Sign-in with Apple is poised to protect your privacy more than Facebook and Google do.
What’s neat is that if you don’t want to work over your email to an app developer or website, Apple will create a unique random email for you, and the email will be unique to that site or app.
Siri, Apple’s new voice assistant, gets an audio update in iOS 13. Instead of clipped voices, Apple is hoping the new Siri sounds smoother and more natural to your ears. Using AI software (a neural talk-to-speak network, specifically), Siri will speak with fewer gaps and non-human sounding modulations.
iOS 13’s Siri also works better with AirPods, the HomePod, CarPlay and Safari:
Create personalised shortcuts using a new Shortcuts app.
Suggested automations so you can customise your and create a template.
Siri reads messages as soon as they arrive and you can instantly respond.
Share a movie or song with friend with one tap.
Hand off a phone call or music from your iPhone to your HomePod.
CarPlay: Siri smart suggestions work here, like suggesting you open your garage door when you get close to home.
Siri Suggestions comes to the Safari browser.
CarPlay in iOS 13 has been overhauled with a new Dashboard view for music, maps, and more, a new Calendar app, and Siri support for third-party navigation and audio apps.

Real time lyric playback for supported tracks is now built into Music, whether you’re using Apple Music streaming or playing from your downloaded library.


Apple’s email app now supports rich fonts, which is nice.


Notes will get a lot more useful in iOS 13 with a better interface and options, where it has been feature-light it will get a great Gallery view and proper folder system with tagging to help you archive better.


As well as getting a click of dark paint with the rest of the Apple apps, Messages got an update to include something a bit more fun (or annoying, depending on your opinion) in Memoji and Animoji integration.
You can add your Memoji or Animoji to your contact card and see your contacts better in the app.Memoji stickers will let you send Bitmoji’s stickers of your face to anyone with Messages, but Apple says it will work with third party messaging apps like WhatsApp. It also said these stickers will work across all iOS devices with an A9 chip or later (iPhone 6s and above).


A couple of new features will come to AirPods if you upgrade to iOS 13. Siri will read you incoming messages and, with Announce Messages, let you reply without using any trigger words. This cool feature will be available for third party messaging apps too.
You’ll also be able to share audio between iOS 13 devices with a tap, playing audio to two pairs of AirPods.
Finally, iOS 13 on iPhone will let you HandOff audio to your HomePod and vice versa. This will work for all audio including phone calls.

More new iOS 13 features
  • Send call spam straight to voicemail and silence unknown callers.
  • Mute thread in Mail.
  • Add attachments to events in Calendar.
  • Time-synced lyrics when you play music.
  • Support for 3D Augmented Reality apps like Minecraft Earth, coming to iOS 13 this summer.
  • Face ID unlocking is now 30 percent faster.
  • New font support.
  • Apps launch 2x faster.
  • Downloads are 50% smaller and updates 60% smaller.
  • Low data mode
  • 38 new language keyboards
  • Language selection per app