DatabaseManager class DatabaseManager implements ConnectionResolverInterface (View source) Methods void __construct(Application $app, ConnectionFactory $factory) Create a new database manager instance. ConnectionInterface connection(string $name = null) Get a database connection instance. void purge(string $name = null) Disconnect from the given database and remove from local cache. void disconnect(string $name = null) Disconnect from the given database. Connection rec
bool hasOption(string $name) Determine if the given option is present. Parameters string $name Return Value bool
$this withHidden(array|string $attributes) deprecated deprecated since version 5.2. Use the "makeVisible" method directly. Make the given, typically hidden, attributes visible. Parameters array|string $attributes Return Value $this
Authenticatable|null user() Get the currently authenticated user. Return Value Authenticatable|null
$this dontSeeLink(string $text, string|null $url = null) Assert that a given link is not seen on the page. Parameters string $text string|null $url Return Value $this
void touch() Touch all of the related models for the relationship. Return Value void
Request getRequest() Get the current request instance. Return Value Request
string getCachedCompilePath() Get the path to the cached "compiled.php" file. Return Value string
int callSilent(string $command, array $arguments = array()) Call another console command silently. Parameters string $command array $arguments Return Value int
array toArray() Get the collection of items as a plain array. Return Value array
Page 381 of 996