Skip to content

Commit 3ef0753

Browse files
authored
Update database-eloquent.md
1 parent 4d75afa commit 3ef0753

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/cookbook/database-eloquent.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ This article will teach how to set them up, for how to perform different databas
77

88
RawPHP comes with Laravel enabled by default, to use CakePHP ORM, you just have to turn it on. You can have both of them turned on at the same time, which means you can write both Cakephp and Laravel ORM in the same controller methods. Awesome, isn't it?
99

10+
The below covers how to import and use other framework cores such as Laravel and CakePHP. Slim PHP works by default. You can import others following the same guidelines below.
11+
For how to run normal (or vanilla) sql queries, see [How to use Raw SQL](https://laravel.com/docs/5.6/database#running-queries)
1012

1113

1214
# Adding Laravel Eloquent and CakePHP's ORM to your application
@@ -91,7 +93,7 @@ $capsule->setConfig('default', $container['settings']['cakeDB']);
9193
```
9294

9395
## Import the enabled ORM(s) into your model
94-
ere is a sample model setup in `app/Models/User.php`
96+
Here is a sample model setup in `app/Models/User.php`
9597
```
9698
<?php
9799
namespace App\Models;
@@ -177,5 +179,6 @@ foreach ($query as $row) {
177179
## More information
178180

179181
Discover more queries you can run :
180-
* Laravel => [Eloquent](https://laravel.com/docs/5.1/eloquent) Documentation
182+
* [How to use Raw SQL](https://laravel.com/docs/5.6/database#running-queries)
183+
* Laravel => [Eloquent Documentation](https://laravel.com/docs/5.1/eloquent)
181184
* CakePHP => [CakePHP's ORM](https://book.cakephp.org/3.0/en/orm.html)

0 commit comments

Comments
 (0)