Advertisement
fadlyshafa

Untitled

Aug 2nd, 2021
780
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Http\Controllers;
  4.  
  5. use Illuminate\Http\Request;
  6.  
  7. class Api_controller extends Controller
  8. {
  9.     public function index(){
  10.         $data = \DB::table('tests')->get();
  11.  
  12.         return response()->json($data);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement