Tag: laravel
-
How to Create a Custom Validation Rule in Laravel
Step 1 : Define the rule: Validator::extend(‘gmail’, function($attribute, $value) { $domain = explode(‘@’, $value); return (isset($domain[1]) && $domain == ‘gmail.com’) ? true : false; }); In the above code, gmail is the name of the of our newly created validation rule. The method will return return TRUE if the validation is passed else it will return FALSE. Step 2 : […]
-
Best php frameworks
If you develop applications in PHP, here are some of the most important PHP frameworks and libraries that you should know about Laravel – The PHP Framework For Web Artisans Whether you’re a solo developer or a 20 person team, Laravel is a breath of fresh air. Keep everyone in sync using Laravel’s […]