- Use composer to install illuminate/database
composer require illuminate/database
- Place database.php and its contents wherever you would like (preferebely at
config/database.php
orbootstrap.php
)
note the path used since we will use that path at our files
- Create any php script and start using it like
any.php
file while noting the path to be valid to you