grep -Hrn 'texttosearch' /opt/lampp/htdocs/projectfolder/directory
grep -R --exclude-dir={css,js,img,lang} 'texttosearch' /opt/lampp/htdocs/projectfolder/directory
mysql -u root -ppassword databasename < myfile.sql
| <?php | |
| ..... | |
| use Illuminate\Http\Request; | |
| class LoginController extends Controller | |
| { | |
| ..... | |
| /** | |
| * Logout trait |
| composer require "santigarcor/laratrust" | |
| Then in your config/app.php add the following to the providers array: | |
| Laratrust\LaratrustServiceProvider::class, | |
| add the following to the aliases array: | |
| 'Laratrust' => Laratrust\LaratrustFacade::class, | |
| Run the next command to publish all the configuration files: | |
| php artisan vendor:publish --tag="laratrust" | |
| this will generate config\laratrust.php and \config\laratrust_seeder.php |
| go to htdocs directory and run: | |
| composer create-project --prefer-dist laravel/laravel laravel | |
| php artisan serve | |
| Go to | |
| App\Providers\AppServiceProvider | |
| add below line at the begining. | |
| use Illuminate\Support\Facades\Schema; | |
| and in function boot add: |
| $country_m = $_REQUEST['country']; | |
| $statu_m = $_REQUEST['state']; | |
| $city_m = $_REQUEST['city']; | |
| $query_args = array( | |
| 'role' => 'vendor', | |
| 'meta_query' => array( | |
| 'relation' => 'AND', | |
| array( | |
| 'key' => 'country', |
| in typo3conf/LocalConfiguration.php file search for 'displayErrors'. | |
| and set 'displayErrors' => 1, | |
| Its done. | |
| Now Error message will display at frontend. |
| Add Below line in your typo3 extension controller file. | |
| $GLOBALS['TSFE']->getPageRenderer()->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath('extension_key') . 'Resources/Public/javascript/yourjsfile.js',$compress = FALSE, $forceOnTop = FALSE, $allWrap = ''); | |
| -- Change Extension key and your JS file path. |
| Add below code in your Extension controller file. | |
| $GLOBALS['TSFE']->set_no_cache(); |
| From backend go into your root template. | |
| In Setup, Add below code: | |
| config.index_enable = 1 | |
| config.index_externals = 1 | |
| config.index_metatags = 1 | |
| plugin.tx_indexedsearch { | |
| _CSS_DEFAULT_STYLE > |
| From backend go into your root template (or in extension template where Powermail Extension is included). | |
| In that, in Constants Editor Add below code: | |
| plugin.tx_powermail { | |
| view { | |
| templateRootPath = EXT:yourtemplate/Resources/Private/Templates/Extensions/Powermail/Templates/ | |
| partialRootPath = EXT:yourtemplate/Resources/Private/Templates/Extensions/Powermail/Partials/ | |
| layoutRootPath = EXT:yourtemplate/Resources/Private/Templates/Extensions/Powermail/Layouts/ | |
| } |