Skip to content

Instantly share code, notes, and snippets.

@Neeraj1005
Neeraj1005 / add-ckeditor-in-laravel-livewire.md
Last active July 30, 2024 14:23
Add CKEDITOR in Laravel-Livewire

textarea tag field

<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>
@maximevalette
maximevalette / OVH_Keystone_v3.md
Last active June 28, 2022 11:56
Sample PHP script to use Keystone v3 with OVH credentials (username + password)

OVH + PHP + Keystone v3

Install PHP OpenCloud

composer require php-opencloud/openstack ^3.0

Sample token authentication with OVH credentials

<?php
@alejobit
alejobit / DatabaseHandler.php
Last active September 14, 2024 21:24
Symfony Monolog database handler
<?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;
@Alexander-Pop
Alexander-Pop / mag2-redirect.php
Last active June 11, 2024 12:19
Magento 2 - redirect programmatically #magento2 #module #redirect
<?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;
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 16, 2024 16:15
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example