PHP code example of christhompsontldr / laraman

1. Go to this page and download the library: Download christhompsontldr/laraman library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

christhompsontldr / laraman example snippets


    public function __configure()
    {
        $this->model = \App\Mail::class;

    public function __configure()
    {
        $this->viewPath = config('laraman.view.hintpath') . '::mail';

    public function __configure()
    {
        $this->routePath = config('laraman.route.prefix') . '.mail';

public function __configure()
{
    $this->searchEnabled = true;

public function __configure()
{
    $this->columns = [
        [
            'field' => 'braintree_customer_id',
            'display' => 'Braintree Customer',
            'options' => [
                'blade' => config('laraman.view.hintpath') . '::fields.memberships.customer'
            ]
        ],

public function __configure()
{
    $this->filters = [
        [
            'field' => 'event',
            'display' => 'Event',
            'type' => 'select',
            'values' => [
                'send'  => 'send',
                'hard_bounce' => 'hard bounce',
                'open'   => 'open',
                'soft_bounce' => 'soft bounce',
                'deferral' => 'clickdeferral',
                'delivered' => 'delivered',
                'reject' => 'reject',
                'spam' => 'spam',
            ]
        ],
    ];


    public function filterEvent($builder, $val)
    {
        return $builder->{$val}();
    }

public function __configure()
{
    $this->buttons = [
        'laraman::buttons.braintree-transaction',
        'laraman::buttons.receipt',
    ];