File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ composer.phar
33.DS_Store
44/vendor
55.vercel
6- .env
6+ .env
7+ /public /banner.psd
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments