Fix publication bug in advices
This commit is contained in:
parent
beefc79868
commit
b5e1ff830f
2 changed files with 5 additions and 0 deletions
|
|
@ -9,12 +9,15 @@ use App\Http\Requests\Bo\Advice\UpdateAdviceRequest;
|
|||
use App\Models\Advice;
|
||||
use App\Models\Product;
|
||||
use App\Models\Tag;
|
||||
use App\Traits\Controllers\UpdateModelStatus;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
class AdviceController extends Controller
|
||||
{
|
||||
use UpdateModelStatus;
|
||||
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
namespace App\Providers;
|
||||
|
||||
use App\Lib\Helpers\ToolboxHelper;
|
||||
use App\Models\Advice;
|
||||
use App\Models\ExpertiseProduct;
|
||||
use App\Models\News;
|
||||
use App\Models\NewsCategory;
|
||||
|
|
@ -56,6 +57,7 @@ class RouteServiceProvider extends ServiceProvider
|
|||
Route::model('newscategory', NewsCategory::class);
|
||||
Route::model('tag', Tag::class);
|
||||
Route::model('product', Product::class);
|
||||
Route::model('advice', Advice::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue