Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Pedidos
SUBMITTED BY:
Guest
DATE:
Aug. 12, 2014, 4:47 p.m.
FORMAT:
PHP
SIZE:
646 Bytes
Raw
Download
Tweet
HITS:
24807
Go to comments
Report
<?php
class
PedidosController
extends
\BaseController
{
public
function
__construct
(
Pedido
$model
)
{
$this
->
model
=
$model
;
}
public
function
index
()
{
$response
=
array
();
return
Response
::
json
(
$response
);
}
public
function
show
(
$id
)
{
$response
=
array
(
"pedido"
=>
array
(
"id"
=>
$id
)
);
return
Response
::
json
(
$response
);
$response
[
'pedido'
]
=
$this
->
model
->
find
(
1
);
}
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus