Child pages
  • Laravel doctrine ORM

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. composer

    Code Block
    composer require "laravel-doctrine/orm:1.1.*"
  2. config/app.php 에 등록

    Code Block
    'providers' => [
    // ...
    LaravelDoctrine\ORM\DoctrineServiceProvider::class,
    ],
     
    'aliases' => [
    // ...
    'EntityManager' => LaravelDoctrine\ORM\Facades\EntityManager::class,
        ],
    
    
  3. config publish

    Code Block
    php artisan vendor:publish --tag="config"
  4. config/doctrine.php  수정

설정

.env 에 DB_CONNECTION 에 드라이버 설정

 

 

 

Children Display
depth2
styleh3

...