Advertisement
Thelz

interaction Db

Mar 19th, 2020
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Http\Controllers;
  4.  
  5. use App\siswa;
  6. use Illuminate\Http\Request;
  7.  
  8. class SiswaController extends Controller
  9. {
  10.     /**
  11.      * Display a listing of the resource.
  12.      *
  13.      * @return \Illuminate\Http\Response
  14.      */
  15.     public function index()
  16.     {
  17.         /*$data['nama'] = "Daviturov";
  18.         $data['kelamin'] = "laki";
  19.         return view('yahoo', $data);
  20.         */
  21.  
  22.         $data['murid'] =\DB::table('siswa')->get();
  23.         return view('test', $data);
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement