Skip to content

Instantly share code, notes, and snippets.

View datamweb's full-sized avatar
🏠
Working from home

Pooya Parsa datamweb

🏠
Working from home
View GitHub Profile
@datamweb
datamweb / EmailGmail.php
Created April 20, 2023 09:31
Codeigniter4 Email Config
<?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Email extends BaseConfig
{
public string $fromEmail = 'info@codeIgniter4.ir';
public string $fromName = 'codeIgniter4DotIR';
@datamweb
datamweb / Example.md
Last active April 10, 2022 00:59
Add field type SET to table via Codeigniter Migration

Add field type SET to table via Codeigniter Migration

Sql Sample::

ALTER TABLE `table_name` ADD `my_column` SET('optionOne','optionTwo') NULL DEFAULT NULL COMMENT 'Comment for Columm';

Codeigniter Migration :: YourMigration.php

<?php
namespace App\Database\Migrations;

use CodeIgniter\Database\Migration;