This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function createTenantConnection(Tenant $tenant) | |
{ | |
$tenantManager = $this->getTenantManager($tenant); | |
// Create the database connection. | |
$based_on = $this->getBaseConnection($connectionName); | |
$currentConfig = $this->app['config']['database.connections.' . $based_on]; | |
$mergedConfig = array_replace($currentConfig, $tenantManager->createTenantConnection($tenant, $currentConfig) ?? []); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install -y language-pack-en-base | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following package was automatically installed and is no longer required: | |
grub-pc-bin | |
Use 'apt autoremove' to remove it. | |
The following additional packages will be installed: | |
language-pack-en | |
The following NEW packages will be installed: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Illuminate\Tests\Auth\Gate | |
[x] gate throws exception on invalid callback type | |
[x] basic closures can be defined | |
[x] resource gates can be defined | |
[x] custom resource gates can be defined | |
[x] before callbacks can override result if necessary | |
[x] before callbacks dont interrupt gate check if no value is returned | |
[x] after callbacks are called with result | |
[x] current user that is on gate always injected into closure callbacks | |
[x] a single argument can be passed when checking abilities |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Illuminate\Tests\Auth\Gate | |
[x] gate throws exception on invalid callback type | |
[x] basic closures can be defined | |
[x] resource gates can be defined | |
[x] custom resource gates can be defined | |
[x] before callbacks can override result if necessary | |
[x] before callbacks dont interrupt gate check if no value is returned | |
[x] after callbacks are called with result | |
[x] current user that is on gate always injected into closure callbacks | |
[x] a single argument can be passed when checking abilities |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http; | |
use Illuminate\Session\SessionInterface; | |
use InvalidArgumentException; | |
class Flash | |
{ | |
protected $session; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Vitanova\Utilities; | |
use Illuminate\Contracts\Cache\Repository; | |
use Psr\Cache\CacheItemInterface; | |
use Psr\Cache\CacheItemPoolInterface; | |
use Psr\Cache\InvalidArgumentException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$permissions = [ | |
'forum' => [ | |
'create' => [ | |
'threads', | |
'posts', | |
'categories', | |
'attachments' | |
], |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
***************************************************** | |
[1;32;40mDownloading all required software for install routines. | |
(B[m***************************************************** | |
************************************************* | |
[1;32;40m* Installing Development Tools | |
(B[m************************************************* | |
please wait for yum download and installs to complete. | |
yum installs in less verbose mode so final install status is only shown.. | |
.... | |
...... |