When I try to update a file it gives me status code 302 but on my localhost it works fine.
And when I tried todo a post request I get status code 403 forbidden.
I use shared hosting.
route
Route::resource('test','TestController');
controller store and update
public function store(Request $request)
{ print_r('store');return;}
public function update(Request $request, $id)
{ print_r('update');return;}
blade
<form enctype="multipart/form-data" action="{{route('test.update',$file->id)}}" method="post" role="form">
{{ method_field('PUT') }}
@csrf
<input type="text" name="title" value="<?php echo $file->filename ?>"></input><br><br>
<textarea style="width: 100%;height: 90%;"name="comment">{{$file->msg}}</textarea>
<input type="submit" value="Update" name="code"></input>
</form>
when I press the button with the post it redirects to the /test page and with the update it just refreshes the /test/1/edit
edit:
I found out that the bug only apears if the title/comment in the form contain the text @import
it never even reaches the controller just reloads the page.