app/Http/Controllers/NgaoController.php
//This shows all the data in the database 
This shows all the data in the database
This shows all the data in the database
public function index()
    {
       $ngao = Ussd::paginate(15);
       return Ussddata::collection( $ngao);
    }
public function index ( ) { $ ngao = Ussd :: paginate ( 15 ) ; return Ussddata :: collection ( $ ngao ) ; }
This shows all the data in the database
This shows all the data in the database
//Return collection of articles as a resource