Exemplo n.º 1
0
 public function ask_show($slug)
 {
     $ask = \Ask::where('slug', $slug)->firstOrFail();
     $another_asks = \Ask::orderBy(DB::raw("RAND()"))->take(2)->get();
     return View::make('support/ask_show', compact('ask', 'another_asks'));
 }