Posts by Jonas • 3 points
1 post
-
0
votes1
answer164
viewsQ: Is it correct to use get/set and other methods in the model of the Laravel?
Example: In the model: public function getProduct() { return $this->where('price',100)->get(); } public function checkProduct($price) { if($price > 100){ return $price; } } On the…