See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| <?php | |
| //In controller: | |
| //No need to declare $this->resultRedirectFactory in construct as its auto declared in construct of \Magento\Framework\App\Action\Action to which custom controller should extend. | |
| public function execute() | |
| { | |
| $resultRedirect = $this->resultRedirectFactory->create(); | |
| $resultRedirect->setPath('routename/controllerpath/controllername'); | |
| $resultRedirect->setPath('');//home | |
| return $resultRedirect; |
| <?php | |
| namespace App\Monolog; | |
| use App\Entity\Client; | |
| use App\Entity\Log; | |
| use App\Entity\User; | |
| use Doctrine\ORM\EntityManagerInterface; | |
| use Doctrine\ORM\ORMException; | |
| use Monolog\Handler\AbstractProcessingHandler; |
<div wire:ignore class="form-group row">
<x-label class="col-md-3 col-form-label" for="message" :value="__('Compose message')" />
<div class="col-md-9">
<textarea wire:model="message" class="form-control required" name="message"
id="message"></textarea>
<x-error-message :value="__('message')" />
</div>
</div>