change configuration
change env
file
app.baseURL = 'http://192.168.0.117/project/public/'
database.default.hostname = localhost
database.default.database = project
database.default.username = root
database.default.password =
database.default.DBDriver = MySQLi
change app config app/Config/App.php
public $baseURL = 'http://192.168.0.117/project/public/';
change database config app/Config/Database.php
/**
* The default database connection.
*
* @var array
*/
public $default = [
'DSN' => '',
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'project',
'DBDriver' => 'MySQLi',
'DBPrefix' => '',
'pConnect' => false,
'DBDebug' => (ENVIRONMENT !== 'production'),
'charset' => 'utf8',
'DBCollat' => 'utf8_general_ci',
'swapPre' => '',
'encrypt' => false,
'compress' => false,
'strictOn' => false,
'failover' => [],
'port' => 3306,
];
redirect
return redirect()->to(base_url('api'));