Level 122
what is your problem, and what has it got to do with jquery and ajax?
You dont for instance show any javascript
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello guys! I try many method but i have problem! Here is my form and routes:
<form id="homepage-update" method="post" action="{{ url('mc-adm/post/homepage') }}">
{{ csrf_field() }}
<div class="form-group">
<label for="title"><b class="fa fa-pencil"></b> Title</label>
<input id="title" class="form-control" value="{{ $article->title }}" name="title">
</div>
<div class="form-group">
<label for="content"><b class="fa fa-home"></b> Content</label>
<div class="box-body pad">
<textarea id="editor1" name="content" rows="10" cols="80">
{{ $article->content }}
</textarea>
</div>
</div>
<center>
<div class="form-group">
<button type="submit" class="btn btn-success btn-sm"><b class="fa fa-save"></b> Запамети</button>
</form>
Routes:
Route::group(['prefix' => 'mc-adm'], function() {
// POSTs
Route::post('/post/homepage', 'AdminController@HomePage');
// Gets
Route::get('/', 'AdminController@Main');
});
Thank you in advance
Please or to participate in this conversation.