Sending mail via gmail from an application built on laravel is very easy. In fact, Laravel Mail recommends developers to use other APIs such as mailgun and sparkpost to send mail if possible as they are simpler and faster than SMTP servers. If you are thinking what SMTP stands for then it stands for Simple Mail Transfer Protocol, which is the standard protocol for email exchange on the internet. These API drivers need Guz...
Read more »
1 Answer 5373 Views
Displaying image in HTML form field on file upload is very easy with the use of javascript. Let's add a little more effect to make it look more attractive.
Hide file upload button from HTML page and replace it with a text or icon link
If you have a look at most of the social platforms, they have one thing in common related to file upload and that's the file or image upload button which is not present in the form and a plain text or icon link does the work. It helps us ge...
Read more »
2 Answer 272161 Views
Writing a script to autocomplete search field is quite easy in php. But, when you are working with laravel, you'll need a method defined in a controller along with a route for the same method. Assuming that, you have already got your database populated, we're going to move on from that point.
Search Form
The basic HTML element you'll need in order to build a search autocomplete functionality would be a search form. Since, we are autocomplete it without the search query s...
Read more »
1 Answer 8598 Views
Using javascript validation is one of the most appealing part in web development where you can display errors messages to users in case a form doesn't contain required field data. Let's add a form first before working on the validation part.
<form name="myForm" method="post" onsubmit="return validateForm()">
<div class="form-group">
<label>Your Name</label> <span id="error-name"></span>
<input type="text" name="your-name" class="form...
Read more »
1 Answer 66728 Views
Showing
31
to
34
of
34
results