Category : laravel

so i am working on a project where a video uploading feature should be there, this is how i uploading a video //view for video video uploader <form action="{{route(‘videoUploader’)}}" role="form" id="postForm" name="postForm" method="POST" enctype="multipart/form-data"> @csrf <input type="file" name="files[]" multiple ><br/> <input type="submit" value="upload"> </form> and on controller side the code is //controller for video public ..

Read more

Good day everyone, I recently posted a question here regarding adding the amount to the next parent in loop and it goes well with the help of someone from laracasts, he really helped me a lot and the code below is the result of that. The scenario below the amount is not inserting because the ..

Read more

Let’s say we use the same table schema for saving purchased products of orders for website A and B. Databases for A and B locate in different servers. So 2 database connections are defined. CREATE TABLE `order_products` ( `id` int(11) NOT NULL AUTO_INCREMENT, `order_id` int(11) NOT NULL DEFAULT ‘0’, `product_id` int(11) NOT NULL DEFAULT ‘0’, ..

Read more