Skip to content

Instantly share code, notes, and snippets.

/web.php Secret

Created January 19, 2018 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/df449749d097bfa979fdc9c0a8f7ae54 to your computer and use it in GitHub Desktop.
Save anonymous/df449749d097bfa979fdc9c0a8f7ae54 to your computer and use it in GitHub Desktop.
<?php
$post = \App\Post::find(1);
echo $post->qualifyColumn('title');
//posts.title
//en versiones anteriores
echo \App\Post::getModel()->getTable() .'.title';
//posts.title
$user = \App\User::find(1);
echo $user->qualifyColumn('email');
//users.email
//en versiones anteriores
echo \App\User::getModel()->getTable() .'.email';
//users.email
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment