Skip to content
This repository was archived by the owner on Sep 23, 2023. It is now read-only.

atk4/laravel-ad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A drop-in integration for Laravel 5+ to allow use of Agile Data natively.

example

Roadmap

Essential: (absolutely needed)

  • ServiceProvider -- This is the entry point for registering any third-party library with laravel.
  • Registering AD with the DI container -- Wiring up AD. At the bare minimum there would need to be a binding that resolved return \atk4\data\Persistence::connect(PDO_DSN, USER, PASS); so the user can get a $db instance Important: (if you want to make it easier for migrating from Eloquent)
  • Migration console commands -- Eloquent provides console commands that let a user migrate up/down based on model changes. I know AD already has an extension for this so it would just be a matter of writing the commands to use AD
  • Auth -- Need to write a user provider so that laravel's built in auth can get and verify a user Nice To Have:
  • Validation that uses DB -- A couple route validation methods access the database (exists, unique). These would need to be overridden with custom validators (in the ServiceProvider)
  • Collections -- This might be better for the Important category but i don't know how much they are used. Any set of entities loaded from Eloquent are a Collection. They support a bunch of in memory functional methods like pluck, map, etc.. Having a model init with their many relationships loaded as a laravel Collection would definitely help people who rely heavily on them already.

About

Extension for Laravel to natively integrate with Agile Data (https://github.com/atk4/data)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages