Answers for "Laravelda so`rovlarni cheklash"

PHP
0

Laravelda so`rovlarni cheklash

//Buni siz kontrollerga qo`yishingiz kerak eng tepasiga
// Auth bu saytda regdan o`tsa degani throttle esa keladigan zaproslarni cheklash degani
// Ya'ni 1 daqiqada 20 ta so`rov yubrish mumkun. 
// 20 tadan o`tib ketsa juda ko`p so`rovlar degan ingilizcha yozuv chiqadi

public function __construct()
	{
		$this->middleware([
			'auth',
			'throttle:20,1'
        ]);
	}
Posted by: Guest on July-28-2021

Browse Popular Code Answers by Language