Код: Выделить всё
@extends('adminlte::page')
@section('title', 'AdminLTE')
@section('content_header')
Professions
@stop
@section('content')
Profession Name
Update
@stop
Код: Выделить всё
Route::get('/admin/professions-edit/{id}', 'v1\ProfessionsController@edit');
Route::put('/admin/professions-update/{id}', 'v1\ProfessionsController@update');
Код: Выделить всё
public function edit($id)
{
$data = PdTprofession::find($id);
return view('professions-edit', compact('data'));
}
public function update(Request $request, $id)
{
$data = PdTprofession::find($id);
return view('professions-edit', compact('data'));
}
Спасибо,
Подробнее здесь: https://stackoverflow.com/questions/545 ... pdate-page
Мобильная версия