Category : laravel

I already fetched data from database .But now i want to show same data with some changes on next page . I added image for reference . I just want to view whole table on next page but it shows error in controller. public function changeStatus(Request $data) { $result= DB::table(‘driverdatas’)->where(‘id’,’=’, $data->id)->update([ ‘status’ => $data->status]); **$result->status= ..

Read more

I have a table with the following structure: <tbody> <tr> <td> <button id=“elem_id”>Move</button> </td> <td> </td> </tr> With this script: $(‘tbody’).sortable({ handle: ‘.drag_handle’, group: ‘nested’, animation: 600, ghostClass: ‘drag_drop_class’, fallbackOnBody: true, swapThreshold: 0.65, onEnd: function (evt) { var btn = evt.item.firstElementChild.firstElementChild; let id = btn.id; let oldIndex = evt.oldIndex; let newIndex = evt.newIndex; //TODO: Em ..

Read more

I am new on laravel framework. I have created an component (lecture-content) having some files input options, and there is an button onclick which should add one more (lecture-content) component. On DOM. function addContent() { let newDoc = “@include(‘inc.lecture-content’)”; let extendContent = document.getElementById(‘addNew’).innerHtml; console.log(extendContent); console.log(newDoc); extendContent+=newDoc; document.getElementById(‘addNew’).innerHtml= extendContent; } <div class=”cariculum-heading my-2″> <h5 class=”my-auto py-auto ..

Read more

For my laravel project, I created the product category table and add data to the table. Now I need to get each product_category detail using get method. This is the product category table that I created, public function up() { Schema::create(‘p_categories’, function (Blueprint $table) { $table->bigIncrements(‘category_id’); $table->string(‘name’); $table->string(‘size’); $table->timestamps(); }); } CategoryController I use, <?php ..

Read more