Skip to content

Instantly share code, notes, and snippets.

@daffoxdev
daffoxdev / AbstractAdminCrudController.php
Last active December 22, 2023 11:58
EasyAdmin 3.2.7 show records list of another controller inside of details page. Can be used as base to continue the idea
<?php
namespace App\Controller\Admin;
use App\Admin\Field\ControllerIndexField;
use EasyCorp\Bundle\EasyAdminBundle\Collection\FieldCollection;
use EasyCorp\Bundle\EasyAdminBundle\Config\Action;
use EasyCorp\Bundle\EasyAdminBundle\Config\Actions;
use EasyCorp\Bundle\EasyAdminBundle\Config\Crud;
use EasyCorp\Bundle\EasyAdminBundle\Config\KeyValueStore;
@daffoxdev
daffoxdev / Additional DATA
Last active January 25, 2024 15:14
Phone numbers area codes
NPA codes search: https://nationalnanpa.com/enas/npa_query.do
NPA code list: https://en.wikipedia.org/wiki/List_of_North_American_Numbering_Plan_area_codes
This lists potentially not complete, so not use them for critical fields. Check WIKI and nationalnanpa