درود...
مشکل کجاست؟
خطای زیر:
ErrorException (E_ERROR)
Property [id] does not exist on this collection instance. (View: /home/cytus/www/discuss/resources/views/tags/index.blade.ph
کد زیر:
{{ Form::open(array('route' => ['tags.destroy', $tags->id], 'method' => 'DELETE')) }}
{{ Form::button('<i class="fa fa-trash-o"></i>', ['class' => 'btn btn-primary btn-sm', 'type' => 'submit']) }}
{{ Form::close() }}
بهترین پاسخ
انتخاب شده توسط پایان جهان
وحید رضازاده
2 سال پیش
@RaymondDragon
سلام
شما توی فرم نوشتین
{{ Form::open(array('route' => ['tags.destroy', $tags->id], 'method' => 'DELETE')) }}
به اشتباه tag رو نوشتین tags
به این صورت اصلاح کنید
{{ Form::open(array('route' => ['tags.destroy', $tag->id], 'method' => 'DELETE')) }}