skip to Main Content

how to store an array value from blade to database in Laravel – Jquery ajax

submitting a dynamic form but can't store the value to database. im a beginner i stuck for 2,3 days but cant solve the problem. the request value is like {"_token":"PTGmyf3UZrD1TgKDJcREcKia9VFRLYaP5kNaAkAU","id":["28","31"],"name":["Fogg","zack"],"rate":["70","5000"],"quantity":["1","1"],"submit":"Submit"} <form name="" id="form" action="{{ url('/store_order_item') }}" method="POST"> @csrf <table class="table…

VIEW QUESTION

Laravel very slow eloquent query – Phpmyadmin

I need to get catalogs from database using Laravel query, so I write simply: $catalogs = Catalog::where('shop_id', $shop->id)->latest()->get(['id','title', 'created_at', 'shop_id', 'cover_bg', 'frontpage', 'pdf', 'clicks', 'finished']); In a catalog table I have more than 100 columns - 2 of them are…

VIEW QUESTION
Back To Top
Search