I am studying the use of Laravel 5, but I am at the stage of building a query, and after looking at the first code snippets, I think it is really useless when someone has basic knowledge of SQL.
Example:
$users = DB::table('users') ->select(DB::raw('count(*) as user_count, status')) ->where('status', '<>', 1) ->groupBy('status') ->get();
What is the purpose of studying the syntax of a query builder if a programmer has at least basic knowledge of the SQL language? Moreover, moving extended queries from pure SQL to builder function queries looks like a nightmare ...
, , (, , , ?), . , , "" "" , - .
, , . SQL - , . , Laravel, , , .
, Eloquent . , , SQL . SQL.
Source: https://habr.com/ru/post/1621295/More articles:Build an ATM library using Xamarin - androidКак использовать Local/User Control с другой папкой - c#R on Mac: "Times New Roman" family not included in postscript () device - fontsSpring boot OAuth2 role-based access control on resourcse server with roles from Auth server - spring-bootJenkins: how can I get builds of follow-up work corresponding to creating multi-configuration parent jobs using the Jenkins API - jenkinsInotify event in C - cIs narrowing the list initialization conversion an error or just a warning? - c ++Why resolveInstanceMethod: called twice - objective-cto simulate traffic in carousels - netlogoPearson correlation coefficient in burst survey R - rAll Articles