Friday, March 3, 2017

Laravel: Newbie array-session ? with multiple actions

First Laravel Project.

I want to make a page called: newfoo

The page will look like this:

@extends('layouts.product')
@section('title', 'Termékrészletek')
@section('main')
@parent

<table>
<tr><td colspan=2> </td></tr>
<tr><td><button type=submit>Add New</button></td><td><button type=?>Finish</button></td></tr>
</table>
@endsection

When someone type on the bar and click on the Add New the page reload and the "backcode" places the "foo" in a session variable $foo (or a session database). It repeats until the operator person click on the Finish. When he/she clicks on the finish the backcode lists the "foo"s in a table.

How can I achieve this? What's the good method?



via Feralheart

Advertisement