Laravel:新手数组会话?有多个动作
Laravel: Newbie array-session ? with multiple actions
第一个 Laravel 项目。
我想制作一个名为:newfoo
的页面
页面将如下所示:
@extends('layouts.product')
@section('title', 'Termékrészletek')
@section('main')
@parent
{{ Form::open( url=>/newfoo ) }}
<table>
<tr><td colspan=2> {{ Form::text(foo,null,required) }}</td></tr>
<tr><td><button type=submit>Add New</button></td><td><button type=?>Finish</button></td></tr>
</table>
@endsection
当有人在栏上键入并单击 Add New
时,页面会重新加载,并且 "backcode" 会将 "foo" 放入会话变量 $foo(或会话数据库)中。它会重复,直到操作员单击 Finish
。当 he/she 单击完成时,反向代码会在 table.
中列出 "foo"s
我怎样才能做到这一点?有什么好的方法吗?
尝试获取 post 信息并使用控制器对其进行操作。您可以在那里将其存储在会话中或将其关联到模型。
如果您可以将您的值写入 table 并且您可以稍后访问它并在需要时截断它 "destroy the session"。
第一个 Laravel 项目。
我想制作一个名为:newfoo
的页面页面将如下所示:
@extends('layouts.product')
@section('title', 'Termékrészletek')
@section('main')
@parent
{{ Form::open( url=>/newfoo ) }}
<table>
<tr><td colspan=2> {{ Form::text(foo,null,required) }}</td></tr>
<tr><td><button type=submit>Add New</button></td><td><button type=?>Finish</button></td></tr>
</table>
@endsection
当有人在栏上键入并单击 Add New
时,页面会重新加载,并且 "backcode" 会将 "foo" 放入会话变量 $foo(或会话数据库)中。它会重复,直到操作员单击 Finish
。当 he/she 单击完成时,反向代码会在 table.
我怎样才能做到这一点?有什么好的方法吗?
尝试获取 post 信息并使用控制器对其进行操作。您可以在那里将其存储在会话中或将其关联到模型。
如果您可以将您的值写入 table 并且您可以稍后访问它并在需要时截断它 "destroy the session"。