blah server ver blah

This commit is contained in:
2021-03-13 02:28:50 +00:00
parent 7a62b01027
commit c9257dc357
10 changed files with 24 additions and 32 deletions

View File

@@ -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

View File

@@ -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'); });