fixed restore annd trashed bug for product

pull/44/head
A1Gard 6 months ago
parent 2cc3475431
commit 507b655c94

@ -4,8 +4,9 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Quantity extends Model
{
use HasFactory;
use HasFactory,SoftDeletes;
}

@ -140,7 +140,10 @@ Route::prefix(config('app.panel.prefix'))->name('admin.')->group(
Route::get('edit/{item}', [\App\Http\Controllers\Admin\ProductController::class, 'edit'])->name('edit');
Route::post('update/{item}', [\App\Http\Controllers\Admin\ProductController::class, 'update'])->name('update');
Route::get('delete/{item}', [\App\Http\Controllers\Admin\ProductController::class, 'destroy'])->name('destroy');
Route::get('restore/{item}', [\App\Http\Controllers\Admin\ProductController::class, 'restore'])->name('restore');
Route::post('bulk', [\App\Http\Controllers\Admin\ProductController::class, "bulk"])->name('bulk');
Route::get('trashed', [\App\Http\Controllers\Admin\ProductController::class, "trashed"])->name('trashed');
});
Route::prefix('props')->name('prop.')->group(
function () {

Loading…
Cancel
Save