Linux an open-source Unix inspired Operating system. It is typically packaged in Linux Distribution. Disto is IT vernacular of Distribution There are several Distros available with having a huge community support Some of which are Debian After being release in…
How to add Helper file in Laravel?
To create custom helpers.php file in laravel we need to edit composer.json file in laravel. In autoload object add the following file array:- After adding this we need to run the following command Make sure composer is installed. This will…
Types of Indexes In MongoDB.
Indexes in MongoDB are just like indexes in the book. Instead of going page by page in a Book one can get to any Topic by searching on the index. In MongoDB, these indexes are made of btree. These btree…
Laravel Group routing
For common prefixes in a url, Laravel uses url grouping. In the above route addresses abc.com/my-profile In GET and POST method you can use print GET route as :- And, POST route as:-
Cache Clear in Laravel
Laravel supports popular caching backends like Memcached and Redis out of the box. There are 4 types of Cache in Laravel which you can clear by cli:- Application Cache Route Cache Config Cache View Cache If you are using Shared…
How to set Error in Spinner in Android
You know setError works on EditText and TextView. If the spinner has a list of TextView or EditText item, then you simply have to get the TextView or Editext from it. And then set error on it. You can get…
How to create a csv file in Laravel?
Declare Header Declare Columns Get data Set Formatted data to a variable Return response Your code should look like this
How to send SMTP mail with Attachments in Laravel?
Firstly get the extension of the file to send and get the MIME TYPE for it. Use the mail function and pass the required data needed by the layout and SMTP connection protocol.
How To pass infinite argument in PHP function?
There are many ways to pass undefined no of arguments in a function. Mostly I use one of these three ways:- Pass all the Argument in the form of an array Use func_get_args () to get all the passed argument…
Form Validation And Ajax submission using Jquery Validation
Jquery has a validation plugin which requires “rules:” and “messages:”. Rules are the validation case that you want to check on an input field. And, Messages are the response to those input field which violates the rules. Jquery validation uses…