minor_fix

This commit is contained in:
KNaveenraj-ladybird
2023-10-14 11:51:00 +05:30
parent 1e03d26426
commit 4952d57368
2 changed files with 3 additions and 3 deletions

View File

@@ -150,9 +150,9 @@ class CategoryController extends Controller
try { try {
$category->fill($request->input())->save(); $category->fill($request->input())->save();
return Redirect::back()->with('success', Lang::get('lang.category_inserted_successfully')); return redirect('category')->with('success', Lang::get('lang.category_inserted_successfully'));
} catch (Exception $e) { } catch (Exception $e) {
return Redirect::back()->with('fails', Lang::get('lang.category_not_inserted').'<li>'.$e->getMessage().'</li>'); return redirect('category')->with('fails', Lang::get('lang.category_not_inserted').'<li>'.$e->getMessage().'</li>');
} }
} }

View File

@@ -83,7 +83,7 @@ class="nav-item menu-open"
<div class="form-group col-sm-12 {{ $errors->has('description') ? 'has-error' : '' }}"> <div class="form-group col-sm-12 {{ $errors->has('description') ? 'has-error' : '' }}">
{!! Form::label('description',Lang::get('lang.description')) !!} {!! Form::label('description',Lang::get('lang.description')) !!}
<span class="text-red"> *</span>
<div class="form-group" style="background-color:white"> <div class="form-group" style="background-color:white">
{!! Form::textarea('description',null,['class' => 'form-control color','size' => '110x15','id'=>'myNicEditor','placeholder'=>Lang::get('lang.enter_the_description')]) !!} {!! Form::textarea('description',null,['class' => 'form-control color','size' => '110x15','id'=>'myNicEditor','placeholder'=>Lang::get('lang.enter_the_description')]) !!}
</div> </div>