app/Http/Controllers/Admin/ScreenController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $screen = DB::table('users')
        ->join('screens', 'users.id', '=', 'screens.user_id')
        ->select('users.f_name', 'screens.*')
        ->get();
        return view('admin.screen.list',compact('screen'));
    }
public function index ( ) { $ screen = DB :: table ( 'users' ) -> join ( 'screens' , 'users.id' , '=' , 'screens.user_id' ) -> select ( 'users.f_name' , 'screens.*' ) -> get ( ) ; return view ( 'admin.screen.list' , compact ( 'screen' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .