Skip to content

Commit a970843

Browse files
committed
update readme.md
1 parent abcb428 commit a970843

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ composer.phar
33
.DS_Store
44
/vendor
55
.vercel
6-
.env
6+
.env
7+
/public/banner.psd

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# Example API Structure in PHP - MVC for deploying in Vercel
1+
2+
## <p align="center">Example API structure in PHP - MVC with Database Firebase for deployment in Vercel </p>
23
<p align="center">
34
<a href="#astroanut-hi"><img src="public/banner.png" alt="Hi!!"/></a>
45
</p>
56

67
## Example JSON Structure in Database Firebase
7-
#
8+
89
name-your-database
910
├── public
1011
├── private

core/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static function public($tableName = ''){
1919
}
2020
public static function private($tableName = false){
2121
$database = self::connection();
22-
$reference = $database->getReference($tableName);
22+
$reference = $database->getReference('private/'.$tableName);
2323
return $reference->getValue();
2424
}
2525
}

0 commit comments

Comments
 (0)