Revision 390 | Revision 432 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed
<?phpnamespace App\Http\Controllers;use Illuminate\Http\Request;class BasketItem extends Controller{public string $name;public float $price;public int $menge;public string $code = "";public int $id;public array $medium;//public function __construct( int $menge, float $price, int $item, string $code = "" ){if ( $menge >= 1 && $price > 0 ){$item = \App\Models\Item::with('medium.medium')->find($_GET["item"]);$this->medium = $item->medium;$this->menge = $menge;$this->price = $price;$this->name = $item->name;$this->id = $item;}}}