Working with laravel FORMS

laravel

#1

Hi I was trying to work again with an old project and I find that when complete a laravel form a “bug” is appearing. I don’t know why this is not working since on my localhost it’s working.

On the following URL you can see that there is the https protocol and when you complete the form and send it, the https disappear and return you to the same form without it. I can’t save any record in the DB and I can’t understand why this is happening.

https://mygymroutine-chalssdev.c9users.io/rutinas/crear

I’ve done this project following laravast fundamentals and I have the following blocks of code working here:

Controller:

    public function create () 
    {

    	return view('rutinas.create');

    }

    public function store (Requests\CrearRutinaRequest $request)
    {

    	Rutina::create($request->all());

    	return redirect('rutinas');

    }

The form:

{!! Form::open(['url' => 'rutinas', 'method' => 'POST']) !!} ....

The routes:

    Route::get('rutinas/crear', 'RutinasController@create');
    Route::get('rutinas/{rutina}', 'RutinasController@show');
    Route::post('rutinas', 'RutinasController@store');

I also made a request but this is not important for here.

Can anybody help me?

Thanks :slight_smile:


#3

SOLVED I HAD AN ERROR ON THE FORM. THANKS CLOSE THIS POST.
I’M SORRY for the post