Skip to content
Snippets Groups Projects
Commit 6473a201 authored by Loïc's avatar Loïc
Browse files

Mise en place du squelete pour Eloquent (ne pas oblier de faire composer install)

parent 62c2c746
No related branches found
No related tags found
No related merge requests found
{
"name": "slim/slim",
"type": "library",
"description": "Slim Framework, a PHP micro framework",
"keywords": ["microframework","rest","router"],
"homepage": "http://github.com/codeguy/Slim",
"license": "MIT",
"authors": [
{
"name": "Killian Schuler",
"role": "Developer"
},
{
"name": "Emilien Visentini",
"role": "Developer"
},
{
"name": "Vincent Kbida",
"role": "Developer"
},
{
"name": "Loïc Tardieu",
"role": "Developer"
}
],
"require": {
"php": ">=7.0.0",
"illuminate/database": "5.5.*"
},
"suggest": {
"ext-mcrypt": "Required for HTTP cookie encryption",
"phpseclib/mcrypt_compat": "Polyfil for mcrypt extension"
},
"autoload": {
"psr-0": { "Slim": "." }
}
}
This diff is collapsed.
driver=mysql
username=root
host=localhost
database=gamepedia
charset=utf8mb4
collation=utf8mb4_general_ci
\ No newline at end of file
<?php
use Illuminate\Database\Capsule\Manager as DB;
$db = new DB();
//SI CA NE FONCTIONNE PAS, ENLEVER LES COMMENTAIRES : CES INFOS SONT DEJA DANS LE CONF.INI
//LA LIGNE DU PASSWORD NE DEVRAIT PAS ETRE NECESSAIRE CAR NOUS NOUS CONNECTONS AVEC ROOT, SINON, LA METTRE QUAND MEME
/*$db->addConnection( [
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'gamepedia',
'username' => 'user',
//'password' => 'password',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => ''
] );*/
$db->setAsGlobal();
$db->bootEloquent();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment