Skip to content

Instantly share code, notes, and snippets.

@calebporzio
calebporzio / PreviewOfUpcomingPackage.php
Last active December 2, 2024 12:10
A model trait that allows child models to use parent table names and relationship keys.
<?php
namespace App\Abilities;
use Illuminate\Support\Str;
use ReflectionClass;
/**
* Note: This is a preview of an upcoming package from Tighten.
**/
@karser
karser / FormMassAction
Last active December 4, 2019 16:26
APYDataGridBundle: Custom mass action with parameters
use APY\DataGridBundle\Grid\Action\MassAction;
use Symfony\Component\Form\FormInterface;
class FormMassAction extends MassAction
{
/** @var FormInterface */
protected $form;
public function getFormView()
{