Laravel inbuilt validation works great for email validation. But its functionality limits itself to checking format of given string.

A email validation system would be more effective if it can help check for following

  • Allow only emails from domains which actually exists
  • Restrict emails from temporary email domains
  • Check for top level domains

Check Domain Exists

Using Laravel-Ping, we can filter out incorrect domain names in email.

$domain = explode(‘@’, $value)[1];
$health = Ping::check($domain);

if($health !== 200) {
return false;
}

Restrict Temporary Email Domains

List of popular temporary email domains are available here.

Checking email against these list can help filter out temporary email domains.

$domain = explode(‘@’, $value)[1];
return !in_array($domain, [Temp Email…


Valid email IDs make all the difference when it comes to maintaining active user base for any web portal. So confirming an email validity takes importance during user registration.

Checking for valid email is pretty straightforward nowadays, Get user email and send a verification link to activate profile. We are hereby forcing user to validate their email if they need to use our service. Even-though this provides 100% valid user emails, they turn away customer who are looking for quick registration.

A middle ground would be to filter out invalid emails transparent to user, and keep numbers minimal and acceptable. …


Laravel 5.5 has been out for some time, Its bundled with the stable version of bootstrap v3. However bootstrap v4 has hit beta and should be stable enough to start any new development on v4.

Bootstrap 4 can be easily installed with following steps.

Step 1 — Remove existing bootstrap

Uninstall Bootstrap

npm uninstall --save-dev bootstrap-sass

Step 2 — Install Bootstrap 4

Install Bootstrap 4 beta and popperjs

npm install --save-dev bootstrap@^4.0.0-beta.2 popper.js

Step 3 — Update code references

In resources/assets/js/bootstrap.js replace

try {
window.$ = window.jQuery = require('jquery');

require('bootstrap-sass');
} catch (e) {}

with

try {
window.$ = window.jQuery = require('jquery');
window.Popper = require('popper.js').default;

require('bootstrap');
} catch (e) {}

In resources/assets/sass/app.scss replace

@import “~bootstrap-sass/assets/stylesheets/bootstrap”

with

@import “~bootstrap/scss/bootstrap.scss”

In resources/assets/sass/_variable.scss replace

$font-size-base: 14px;

with

$font-size-base: 0.875rem;

Step 4 — Recompile Assets

Run

npm run dev

Now you have removed all Bootstrap 3 references and installed Bootstrap 4

Sastha K L

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store