Sometimes, you need to make an Eloquent query that is modified by adding different parts based on other criteria. A typical good example of this is when you submit an advanved search form elements, Then you will need to create a query and then add the criteria based on the different inputs from the form.
how to upload image and validate on its properties and display it
Here is a brief overview on how to implement a reset password manually for users in Laravel application.
In case you wanetd to change the error message of a validation rule in Laravel you can make use of the following snippet.
In order to send an email message from laravel, there are numerous ways to do so. Here is the least complicated one.
Sometimes, in a laravel application you need to get rid of the index in the URL, If so you can use the following in your htaccess file in the root folder of your application.
when deleting the last record on pagination page , this will make that page be fully empty with no records ... this snippet will allow you to redirect to the main route when deleting the last record on pagination and the page is empty
When creating an Elastic beanstalk environment, you might do things such as see the logs generated from the EC2 instance, deploy a composer install, give permissions for FTP connections, Run a php artisan command, add something to .ebextensions ..etc. In this article we will list some of these commands.
In case you have an array and would like to create pagination over it here is a user sample code.
If you wish you application to auto logout after a certain amount of time the user is inactive on it, here is a sample code that will work in laravel.