codeigniter 4 db seed
<?php namespace App\Database\Seeds;
class TestSeeder extends \CodeIgniter\Database\Seeder
{
public function run()
{
$this->call('UserSeeder');
$this->call('CountrySeeder');
$this->call('JobSeeder');
}
}
> php spark db:seed TestSeeder
<?php namespace App\Database\Seeds;
class SimpleSeeder extends \CodeIgniter\Database\Seeder
{
public function run()
{
$data = [
'username' => 'darth',
'email' => '[email protected]'
];
// Simple Queries
$this->db->query("INSERT INTO users (username, email) VALUES(:username:, :email:)",
$data
);
// Using Query Builder
$this->db->table('users')->insert($data);
}
}
Also in C++:
- digitalocean redirect http to https nginx
- create pdf from images linux
- turn off selinux centos
- open directory
- remove unnecessary npm packages
- install dependencies react project material ui
- install semantic ui react
- install xq command
- update node ubuntu
- linux up one directory
- psycopg2 error
- disable heroku router logs
- how to install zip file in linux
- ubuntu server change timezone
- check that redis is running
- kill pid
- linux copy folder with files
- git diff between one file
- linux list application installation
- noetic catkin tools install
- install libreoffice linux
- go mod donwload from github
- ffmpeg shrink video size
- docker remove images without tag