Skip to content

dev1437/model-parser

Repository files navigation

This work is based on https://github.com/fumeapp/modeltyper, credit to them.

To use

use App\Models\User;
use Dev1437\ModelParser\ModelParser;

$parser = new ModelParser(User::class);

$modelInfo = $parser->parse();
// Remove hidden fields e.g. password from output
$parser = new ModelParser(User::class, true);

$modelInfo = $parser->parse();
// Remove specific field e.g. email_verified_at from output
$parser = new ModelParser(User::class, false, [
    'email_verified_at'
]);

$modelInfo = $parser->parse();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy