Search

Showing 7 of 1,216 result(s)

/blog/2016/12/07/laravel-artisan-tinker-the-history-command

The history command can be used to retrieve information about the commands have been previously entered in the Tinker REPL session. By using its various options, you can quickly search and find any history item, replay it and even save it to a...

/blog/2016/12/07/laravel-artisan-tinker-the-ls-command

The ls command is a useful command that can be used to learn more any class or instantiated object. It is capable of listing any defined variables, constants, functions, classes, interfaces, traits, properties and methods that might be defined in...

/blog/2016/12/07/laravel-artisan-tinker-the-migrate-command

The migrate command is used to run migrations against the database. It provides many different options and flags (six in total). The following table lists and explains each of these options and flags. Option/Flag Description Default Value...

/blog/2016/12/07/laravel-artisan-tinker-the-show-command

The show command is similar to the ls command in that it helps you to learn more about a class instance or object, except that it will show you the underlying code for any function, class, object instance, constant, method or property. Using our...

/blog/2016/12/07/laravel-artisan-tinker-the-throw-up-command

The throw-up command can be used to re-throw an exception out of a Tinker REPL session. By default, it throws the exception that last occurred, but will accept an exception instance as an argument:

/blog/2016/12/07/laravel-artisan-tinker-the-trace-command

The trace command can be used to show the current call stack. By default, it shows the last 10 lines of the call stack, but this can be configured using the -n option: To show the last 20 lines of the call stack, simply supply it using the -n20...

/blog/2016/12/07/laravel-artisan-tinker-the-up-command

The up command is used to take an application out of maintenance mode. It does this by removing a file named down from the application's framework storage directory (by default this is storage/framework/ ). This command performs the same action as...