我怎么能按新订购AngularFire2清单?

时间:2017-02-11 18:49:56

标签: firebase firebase-realtime-database angularfire2

My database screenshot

     public function store(Request $request)
    {
     $validator = Validator::make($request->all(), [
        'file' =>'required|image|mimes:jpg,jpeg,gif|max:244|image_size:>=360,>=180';

    ]);

    if ($validator->fails()) {
        return redirect('post/create')
                    ->withErrors($validator)
                    ->withInput();
    }

    // Store the file
}

这是我的数据库看起来像。 当我在这个火力列表项目中推送项目时,将在最后添加。 我想在浏览器中渲染posts数组,按new排序。新项目将首先显示。 我该怎么做才能引导我。 谢谢!

0 个答案:

没有答案