Sometimes, when a modal appears you donot want to be hidden if you clicked outside it in the gray area around it in the whole page. to prevent that behavoir, Use the following small code to prevent all modals from this action:
This command creates a new controller file in app/Http/Controllers folder in laravel with all available parameters
I tries re-installing Elasticsearch 6.3.0 on my local server, and installed Java JDK, the most recent one, then when I try to start the Elasticsearch from installation folder/6.3.0/bin/elasticsearch.exe the cmd screen opens and immedietely closes. Here is the error : Unrecognized VM option 'UseConcMarkSweepGC'
If you installed the new composer on php version 7.1, this will show an error like this : Class UpdateHelper\ComposerPlugin contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Composer\Plugin\PluginInterface::deactivate, Composer\Plugin\PluginInterface::uninstall) in /var/www/vhosts/example.com/vendor/kylekatarnls/update-helper/src/UpdateHelper/ComposerPlugin.php on line 11 Here is a solution to this issue
This script runs in an extension that will automate the process of commenting on any video.
Some times you will need to create an eloquent where clause and inside that where you may need to add extra or where claused
To convert a mysql date to an ordinary date you can use the following snippet
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 using datatables and made a filter, then navigated a way from the current page for editing or somthing like this as went back to find out that the filteration you have done already is gone, if you want to preserve this state when you comeback, the solution is simple in datatable like this: