<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>
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
<?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; |
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
<?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; |