본문 바로가기

라라벨39

Laravel - 로그인 이제 라라벨 로그인 기능입니다. 로그인 기능이 제대로 안만들어져서 엄청 힘들었습니다.. 이유는 아래에서 따로 서술하겠습니다. 먼저 resources --> views 경로에 auth 폴더를 만들고 login.blade.php를 만들어줍시다. @extends('layouts.main') @section('title', '로그인') @section('content') @csrf &nbsp 로 그 인 아이디 비밀번호 로그인 유지 @endsection 라우트까지 설정하면 위와 같이 나올겁니다. 다음으로 컨트롤러입니다. app --> Http --> Controllers --> LoginController.php를 만들어줍시다. 2020. 12. 10.
Laravel - 회원가입 라라벨 회원가입 기능을 만들어보겠습니다. https://jetstream.laravel.com/1.x/installation.html Installation | Laravel Jetstream Installation Installing Jetstream You may use Composer to install Jetstream into your new Laravel project: After installing the Jetstream package, you should run the jetstream:install Artisan command. This command accepts the name of the stack you prefer ( jetstream.laravel.com 위 기능을 사용하면 .. 2020. 12. 10.
Laravel - 댓글 작성하기 https://github.com/sungjun-ever/LaravelApp sungjun-ever/LaravelApp Contribute to sungjun-ever/LaravelApp development by creating an account on GitHub. github.com 아래 코드들은 여기서 확인 가능합니다. 1. 모델, 컨트롤러, 마이그레이션 만들기 php artisan make:model Comment -c -m 터미널에 위 명령어를 입력해 한번에 모델, 컨트롤러, 마이그레이션을 만들어줍니다. 2. DB 테이블 구성하기 만들어진 create_comments_table에 아래와 같이 코드를 작성해줍니다. 2020. 7. 26.
PHP/Laravel(10) CRUD#3 이번에는 CRUD 중에서 R을 해보겠습니다. 위 표를 참고하시면 작성하는데 도움이 됩니다. 먼저 show.blade.php에 글 수정 버튼을 만들어줍니다. @extends('layouts.master') @section('title') Show Board @endsection @section('content') Show Board 제목 : {{$board->title}} 내용 : {{$board->story}} 수정 @endsection 그리고 web.php에 edit을 추가합니다 2020. 2. 23.