D
D
Danila5342020-09-12 10:59:42
SQL Server
Danila534, 2020-09-12 10:59:42

Form query from SQL Server database in Laravel blade?

{{ DB::connection('ddtank')->table('Sys_Users_Detail')->where('UserName', Auth::user()->name)->first() != null ?DB::connection ('ddtank')->table('Sys_Users_Detail')->where('UserName', Auth::user()->name)->first()->NickName : 'null' }} - Shows my nickname name from database
{{ DB::connection('ddtank')->table('V_Sys_Users_Detail')->where('UserName', Auth::user()->name)->first() != null ? DB::connection('ddtank')->table('V_Sys_Users_Detail')->where('UserName', Auth::user()->name)->first()->FightPower : 'null' }} -
Shows my strength from the database

Please help me to implement the request,which will give out the player's Nickname and his strength (from highest to lowest)
For example Fifik 1000000
Fifik2 10000

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question