Skip to content

Instantly share code, notes, and snippets.

@peterson-umoke
Created January 22, 2020 20:27
Show Gist options
  • Save peterson-umoke/e44b93970a9b4b8f00e3d204fe3abed3 to your computer and use it in GitHub Desktop.
Save peterson-umoke/e44b93970a9b4b8f00e3d204fe3abed3 to your computer and use it in GitHub Desktop.
how to use modal inside laravel view template
@php
$users2 = DB::select('select * from users where active = ?', [1]); // user raw sql and prepared statements
$users1 = DB::table('users')->get(); // using query builder
@endphp
dd($users1)
dd($users2)
@ThatLadyDev
Copy link

Thanks, this is very helpful. I will try this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment