Uploaded image for project: 'PHP ORMs'
  1. PHP ORMs
  2. PHPORM-88

Support Laravel Sanctum

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • laravel-4.6.0
    • Affects Version/s: None
    • Component/s: Laravel
    • None
    • Needed
    • Hide

      A new way to create a Laravel Model compatible with MongoDB is to extend the 3rd party model et add a use statement to get all the functions customized for MongoDB.
      Example in the PR: https://github.com/mongodb/laravel-mongodb/pull/2580

      Ideally, we need a tutorial that covers how to create a Laravel Application with authentification and an API with Access tokens in Laravel Sanctum.
      https://github.com/mongodb/laravel-mongodb/pull/2580#issuecomment-2214428161

      Show
      A new way to create a Laravel Model compatible with MongoDB is to extend the 3rd party model et add a use statement to get all the functions customized for MongoDB. Example in the PR: https://github.com/mongodb/laravel-mongodb/pull/2580 Ideally, we need a tutorial that covers how to create a Laravel Application with authentification and an API with Access tokens in Laravel Sanctum. https://github.com/mongodb/laravel-mongodb/pull/2580#issuecomment-2214428161

      Sanctum is an authentication system for Laravel and cannot be used out of the box with the Laravel integration for MongoDB.

      Originally asked here: https://github.com/mongodb/laravel-mongodb/discussions/2242
      Documentation for Laravel Sanctum: https://laravel.com/docs/10.x/sanctum

            Assignee:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            andreas.braun@mongodb.com Andreas Braun
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: