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\Libraries; | |
class Permission{ | |
public $admin_permissions = '{"Dashboard":{"mod_access":"1","create":"1","read":"1","update":"1","delete":"1"},"Pages":{"mod_access":"1","create":"1","read":"1","update":"1","delete":"1"},"Customers":{"mod_access":"1","create":"1","read":"1","update":"1","delete":"1"},"Product_category":{"mod_access":"1","create":"1","read":"1","update":"1","delete":"1"},"Settings":{"mod_access":"1","create":"1","read":"1","update":"1","delete":"1"},"Role":{"mod_access":"1","create":"1","read":"1","update":"1","delete":"1"},"User":{"mod_access":"1","create":"1","read":"1","update":"1","delete":"1"},"Products":{"mod_access":"1","create":"1","read":"1","update":"1","delete":"1"},"Brand":{"mod_access":"1","create":"1","read":"1","update":"1","delete":"1"},"Customers":{"mod_access":"1","create":"1","read":"1","update":"1","delete":"1"},"Color_family":{"mod_access":"1","create":"1","read":"1","update":"1","delete":"1"},"Attribute_group":{"mod_access":"1","create":"1","read":"1 |
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\Database\Seeds; | |
use CodeIgniter\Database\Seeder; | |
class Country extends Seeder | |
{ | |
public function run() | |
{ |
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
$data = [ | |
['country_id' =>'2', 'name' =>'Albania', 'iso_code_2'=> 'AL', 'iso_code_3' =>'ALB'], | |
[ 'country_id' =>'3','name' => 'Algeria','iso_code_2'=> 'DZ', 'iso_code_3' =>'DZA'], | |
[ 'country_id' =>'4','name' => 'American Samoa', 'iso_code_2'=> 'AS','iso_code_3' => 'ASM'], | |
[ 'country_id' =>'5', 'name' => 'Andorra', 'iso_code_2'=> 'AD','iso_code_3' => 'AND'], | |
[ 'country_id' =>'6', 'name' => 'Angola', 'iso_code_2'=> 'AO','iso_code_3' => 'AGO'], | |
[ 'country_id' =>'7', 'name' => 'Anguilla', 'iso_code_2'=> 'AI','iso_code_3' => 'AIA'], | |
[ 'country_id' =>'8', 'name' => 'Antarctica', 'iso_code_2'=> 'AQ','iso_code_3' => 'ATA'], | |
[ 'country_id' =>'9', 'name' => 'Antigua and Barbuda', 'iso_code_2'=> 'AG','iso_code_3' => 'ATG'], | |
[ 'country_id' =>'10', 'name' => 'Argentina', 'iso_code_2'=> 'AR','iso_code_3' => 'ARG'], |