/**
* Make a form builder.
*
* @return Form
*/
protected function form()
{
$form = new Form(new PersonalAccessToken());
$form->editing(function ($form) {
$form->model()->makeVisible('token');
});
$form->text('tokenable_type', __('Tokenable type'));
$form->text('tokenable_id', __('Tokenable id'));
$form->text('name', __('Name'));
$form->text('token', __('Token'));
// $form->display('abilities', __('Abilities'));
$form->datetime('last_used_at', __('Last used at'));
$form->datetime('created_at', __('Created at'));
$form->datetime('updated_at', __('Updated at'));
return $form;
}
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12 mb-3">
<div class="card">
<div class="card-header">{{ __('servers.' . $title) }}</div>
<div class="card-body">
<div id="servers">
<servers-component :langs-prop="'{{ base64_encode(json_encode($langs)) }}'" :servers-prop="'{{ base64_encode(json_encode($servers, JSON_NUMERIC_CHECK)) }}'"></servers-component>
</div>
{{ $servers->links() }}
</div>
</div>
</div>
</div>
</div>
@endsection
<?php $sjson = json_encode($servers); ?>
<servers-component :servers="{{ $sjson }}"></servers-component>