how to get data from sql in laravel 5.8 code example
Example 1: DB::table('users')->get();
DB::select('SELECT * FROM users WHERE name = "'.Input::get('name').'"');
Example 2: DB::table('users')->get();
DB::table('users')->where('name', Input::get('name'))->get();