laravel take get code example
Example 1: get all data eloquent laravel
Blog::all();
//example usage.
$posts = Blog::all();
Example 2: DB::table('users')->get();
DB::select('SELECT * FROM users WHERE name = "'.Input::get('name').'"');
Blog::all();
//example usage.
$posts = Blog::all();
DB::select('SELECT * FROM users WHERE name = "'.Input::get('name').'"');