Daniel 9 rokov pred
rodič
commit
e5cfb4b5a9
2 zmenil súbory, kde vykonal 14 pridanie a 7 odobranie
  1. 12 5
      .idea/workspace.xml
  2. 2 2
      app/routes.php

+ 12 - 5
.idea/workspace.xml

@@ -2,6 +2,7 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="80f2fc29-4939-4e5d-80a5-cd8ec589ca07" name="Default" comment="">
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/app/routes.php" afterPath="$PROJECT_DIR$/app/routes.php" />
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
     </list>
     <ignored path="dumbo.iws" />
@@ -100,8 +101,8 @@
       <file leaf-file-name="routes.php" pinned="false" current-in-tab="true">
         <entry file="file://$PROJECT_DIR$/app/routes.php">
           <provider selected="true" editor-type-id="text-editor">
-            <state vertical-scroll-proportion="0.5257009">
-              <caret line="25" column="48" selection-start-line="25" selection-start-column="48" selection-end-line="25" selection-end-column="48" />
+            <state vertical-scroll-proportion="0.20093457">
+              <caret line="511" column="134" selection-start-line="511" selection-start-column="134" selection-end-line="511" selection-end-column="134" />
               <folding>
                 <element signature="e#7#392#0#PHP" expanded="true" />
               </folding>
@@ -475,7 +476,13 @@
       <option name="project" value="LOCAL" />
       <updated>1445434156565</updated>
     </task>
-    <option name="localTasksCounter" value="10" />
+    <task id="LOCAL-00010" summary="Remove debug...">
+      <created>1445434194207</created>
+      <option name="number" value="00010" />
+      <option name="project" value="LOCAL" />
+      <updated>1445434194207</updated>
+    </task>
+    <option name="localTasksCounter" value="11" />
     <servers />
   </component>
   <component name="ToolWindowManager">
@@ -937,8 +944,8 @@
     </entry>
     <entry file="file://$PROJECT_DIR$/app/routes.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state vertical-scroll-proportion="0.5257009">
-          <caret line="25" column="48" selection-start-line="25" selection-start-column="48" selection-end-line="25" selection-end-column="48" />
+        <state vertical-scroll-proportion="0.20093457">
+          <caret line="511" column="134" selection-start-line="511" selection-start-column="134" selection-end-line="511" selection-end-column="134" />
           <folding>
             <element signature="e#7#392#0#PHP" expanded="true" />
           </folding>

+ 2 - 2
app/routes.php

@@ -501,7 +501,7 @@ Route::get('stats', function() {
             'name' => 'Bewertet am besten',
             'entr' => array('', ''),
             'vals' => Comment::addselect(DB::raw('film_comments.*, ROUND(AVG(`bewertung`),1) as count'))
-                ->where('bewertung', '!=', 0)->groupBy('user')->orderBy('count', 'DESC')->take(3)->get(),
+                ->where('bewertung', '!=', 0)->groupBy('user')->orderBy('count', 'DESC')->raw('ORDER BY COUNT(*) DESC')->take(3)->get(),
             'prop' => 'autor',
             'type' => 'User'
         ),
@@ -509,7 +509,7 @@ Route::get('stats', function() {
             'name' => 'Bewertet am schlechtesten',
             'entr' => array('', ''),
             'vals' => Comment::addselect(DB::raw('film_comments.*, ROUND(AVG(`bewertung`),1) as count'))
-                ->where('bewertung', '!=', 0)->groupBy('user')->orderBy('count', 'ASC')->take(3)->get(),
+                ->where('bewertung', '!=', 0)->groupBy('user')->orderBy('count', 'ASC')->raw('ORDER BY COUNT(*) ASC')->take(3)->get(),
             'prop' => 'autor',
             'type' => 'User'
         ),