blah server ver blah
This commit is contained in:
@@ -25,6 +25,8 @@ class VideoController extends Controller
|
||||
$videos = Video::filtered();
|
||||
if($request->has('q')) {
|
||||
$needle = trim($request->input('q'));
|
||||
if(count(explode(",", $needle)) > 10)
|
||||
return back()->with('error', 'too many search terms');
|
||||
$videos = $videos->withAnyTagsFuzzy($needle);
|
||||
return view('index', [
|
||||
'number_of_results' => $videos->get()->count(),
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 247 KiB After Width: | Height: | Size: 866 KiB |
@@ -149,7 +149,7 @@ Route::group(["middleware" => "theme"], function() {
|
||||
# ]);
|
||||
#});
|
||||
#Route::get('login', function() { return view('login'); });
|
||||
#Route::get('donations', function() { return view('donation'); })->middleware('auth');
|
||||
Route::get('donations', function() { return view('donation'); })->middleware('auth');
|
||||
Route::get('login', 'UserController@loggain');
|
||||
#Route::get('counter-strike', function() { return view('counter-strike'); });
|
||||
|
||||
|
Reference in New Issue
Block a user