{id}-{name}-{lastname}
{id}
Route::get('user/{id}', 'controller')->where('id', '[0-9]+');
<?php
$content='"{\"orderId\":\"ORDER-294\",\"paymentState\":\"CANCELED\",\"signature\":\"naK+I79FduGkXFHpVT\/aJT31EfQ=\",\"message\":\"\u041a\u043b\u0438\u0435\u043d\u0442 \u043d\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b \u043e\u043f\u043b\u0430\u0442\u0443\",\"storeId\":\"158CC6EE85DA472AB3FB\"}"';
$res=json_decode(json_decode($content), true);
print_r($res);
/*Array
(
[orderId] => ORDER-294
[paymentState] => CANCELED
[signature] => naK+I79FduGkXFHpVT/aJT31EfQ=
[message] => Клиент не завершил оплату
[storeId] => 158CC6EE85DA472AB3FB
)
*/
public function view()
{
$posts = DB::table('posts')
->select('*')
->get('*');
return Response::json([
'posts' => array_map(function($post) {
return [
'title'=>$post->title,
'datatime'=>$post->datetime,
'anons'=>$post->anons,
'text'=>$post->text,
'tags'=>explode(', ', $post->tags),
'image'=>$post->images
];
}, $posts)
]);
}
Object.defineProperty(NodeList.prototype, "addEventListener", {
value: function (event, callback, useCapture) {
useCapture = ( !! useCapture) | false;
for (var i = 0; i < this.length; ++i) {
if (this[i] instanceof Node) {
this[i].addEventListener(event, callback, useCapture);
}
}
return this;
}
});
v-list-tile
менять с to
на @click
и там уже отслеживатьv-list-tile
есть пропса tag
, туда div отправить, по умолчанию берёт с router-link
, а там a
async created() {
await this.getPosition();
await this.measureSystemC();
await this.measureSystemF();
this.toggleIcon();
},
class Controller
{
public function index(Request $request)
{
return (new Service($request->get('type'), $request->get('param')))->run();
}
}