반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- reactnative
- 소액임금체불
- cartalyst
- 보정명령
- php
- win32
- Blade
- 사업자계좌
- vue
- Python
- javascript
- 전자소송
- 코로나19
- Bootstrap
- as후기
- 당사자표시정정신청서
- 개인사업자
- 인민공원
- Laravel
- 체당금
- 홈택스
- 이더리움
- elasticSearch
- blockchain
- Eclipse
- Sentinel
- Java
- Tutorial
- 코로나
- auth
Archives
- Today
- Total
그냥 사는 이야기
Laravel 5.3 Sentinel - Registration 본문
반응형
Laravel 5.3 Sentinel - Registration
Migration 수정
2014_07_02_230147_migration_cartalyst_sentinel.php
Schema::create('users', function (Blueprint $table)
{
...
$table->string('first_name')->nullable();
$table->string('last_name')->nullable();
$table->string('location'); // 추가
$table->timestamps();
...
php artisan migrate:refresh
Controller 생성
php artisan make:controller RegistrationController
routes/web.php
Route::get('/register', 'RegistrationController@register'); // 추가
App/Http/Controllers/RegisterationController.php
public function register()
{
return view('authentication.register');
}
View
2번째 link FontAwesome 사용하고 나면 아이콘 사용 가능
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Register</h3>
</div>
<div class="panel-body">
<form action="" method="POST">
{{ csrf_field() }}
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-envelope"></i></span>
<input type="email" name="email" class="form-control" placeholder="example@example.com">
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-user"></i></span>
<input type="text" name="first_name" class="form-control" placeholder="First Name">
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-user"></i></span>
<input type="text" name="last_name" class="form-control" placeholder="Last Name">
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-map-marker"></i></span>
<input type="text" name="location" class="form-control" placeholder="Location">
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
<input type="password" name="password" class="form-control" placeholder="Password">
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
<input type="password" name="password_confirmation" class="form-control" placeholder="Password Confirmation">
</div>
</div>
<div class="form-group">
<input type="submit" value="Register" class="btn btn-success pull-right">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
'Development > Web' 카테고리의 다른 글
Laravel 5.3 Sentinel - Login (0) | 2020.01.21 |
---|---|
Laravel 5.3 Sentinel - Create User (0) | 2020.01.20 |
Laravel 5.3 Sentinel - Setting Up (0) | 2020.01.20 |
Laravel 5.3 Tutorial for Beginner - Social Network (CRUD) Migrations (0) | 2020.01.19 |
Laravel 5.3 Tutorial for Beginner - Profile Design and Date (0) | 2020.01.19 |
Comments