This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function adminDriverDataUpdate(Request $request) | |
{ | |
$post = $request->all(); | |
$request->validate([ | |
'name' => 'required', | |
'username' => [ | |
'required', | |
Rule::unique('users')->ignore($post['id']), | |
], | |
'phone' => 'required', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "# Code" >> README.md | |
git init | |
git add README.md | |
git commit -m "first commit" | |
git remote add origin git@github.com:ravibhoraniya/ttt.git | |
git push -u origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use App\Http\Controllers\Controller; | |
use Illuminate\Http\Request; | |
use DB; | |
use Illuminate\Support\Facades\Session; | |
use Illuminate\Support\Facades\Redirect; | |
use View; | |
use Validator; | |
use Hash; | |
use Carbon\Carbon; | |
use Input; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* crerate zip file | |
* (*) for all file in directory | |
*/ | |
sudo zip -r name.zip * | |
/** | |
* crerate zip file | |
* (-x) exclude specific file or directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
** check php version and extension status | |
**/ | |
php -v | |
php -m | |
/** | |
** change php version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. To add this, you will need to override the following files: | |
vendor/magento/core/module-catalog-search/Block/Advanced/Form.php | |
vendor/magento/core/module-catalog-search/Model/Advanced.php | |
vendor/magento/module-catalog-search/view/frontend/templates/advanced/form.phtml | |
2. Form.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* clean cache */ | |
php bin/magento cache:clean | |
/* reindex */ | |
php bin/magento indexer:reindex | |
/* ugrade */ | |
php bin/magento setup:upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*------------------------ visual composer example ---------------------*/ | |
add_filter('site_transient_update_plugins', 'remove_update_notifications'); | |
function remove_update_notifications($value) { | |
if ( isset( $value ) && is_object( $value ) ) { | |
unset($value->response[ 'js_composer/js_composer.php' ]); | |
} | |
} |
NewerOlder