1 year ago

Sorry, the page you are looking for could not be found error

Posted 1 year ago by Edris899

Hi there,

I am building a illustration & album website with laravel 5. I am trying to move the selected illustration to another album. I do that with a button and a modal popup from bootstrap.

I just want to perform an action on the controller but it want a page or something?

This is the html code.

<div class="col-lg-12">
   <form role="form" method="put" action="{{action('[email protected]', $album->id)}}">
      <div class="form-group">
         <label for="exampleFormControlSelect1">Choose a album</label>
         <select class="form-control" id="exampleFormControlSelect1">
            @foreach($albums as $album)
            <option value="{{$album->id}}">{{$album->name}}</option>
      <div class="row">
         <div class="col-lg-6 offset-lg-3">
            <button type="submit" class="btn btn-success">Move Illustrations</button>

This is the function in the controller.

public function movePhotosToAlbum(Request $request,$id){
        $currentAlbum = Album::findOrFail($id);
        $newAlbum = $request->album->id;

        return redirect()->route('users.photos.home');


The problem is that it doesn't get to the function. It doesn't perform that. Any ideas why?

Thanks in advance!

Please sign in or create an account to participate in this conversation.