search

Home  >  Q&A  >  body text

I don’t understand why a '\' is written before the SQL statement.

\DB::table();Why do we need to write this slash \ in the teaching video, but the laravel manual demonstration does not require it

平庸  ^平庸 ^1940 days ago1106

reply all(2)I'll reply

  • 平庸  ^

    平庸 ^2019-08-03 16:51:15

    Got it, thanks

    reply
    0
  • 像风一样自由

    像风一样自由2019-08-03 16:21:40

    If you add this line above, use Illuminate\Support\Facades\DB;

    you don’t need to write it\

    reply
    1
  • Cancelreply