mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 05:14:03 +00:00
Merge branch 'docs' of github.com:stancl/tenancy into docs
This commit is contained in:
commit
5f1dc0b84d
6 changed files with 29 additions and 30 deletions
|
|
@ -3,10 +3,10 @@
|
||||||
use App\Listeners\GenerateSitemap;
|
use App\Listeners\GenerateSitemap;
|
||||||
use TightenCo\Jigsaw\Jigsaw;
|
use TightenCo\Jigsaw\Jigsaw;
|
||||||
|
|
||||||
/** @var $container \Illuminate\Container\Container */
|
/* @var $container \Illuminate\Container\Container */
|
||||||
/** @var $events \TightenCo\Jigsaw\Events\EventBus */
|
/* @var $events \TightenCo\Jigsaw\Events\EventBus */
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* You can run custom code at different stages of the build process by
|
* You can run custom code at different stages of the build process by
|
||||||
* listening to the 'beforeBuild', 'afterCollections', and 'afterBuild' events.
|
* listening to the 'beforeBuild', 'afterCollections', and 'afterBuild' events.
|
||||||
*
|
*
|
||||||
|
|
@ -18,4 +18,3 @@ use TightenCo\Jigsaw\Jigsaw;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$events->afterBuild(GenerateSitemap::class);
|
$events->afterBuild(GenerateSitemap::class);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ class GenerateSitemap
|
||||||
protected $exclude = [
|
protected $exclude = [
|
||||||
'/assets/*',
|
'/assets/*',
|
||||||
'*/favicon.ico',
|
'*/favicon.ico',
|
||||||
'*/404'
|
'*/404',
|
||||||
];
|
];
|
||||||
|
|
||||||
public function handle(Jigsaw $jigsaw)
|
public function handle(Jigsaw $jigsaw)
|
||||||
|
|
@ -18,7 +18,7 @@ class GenerateSitemap
|
||||||
$baseUrl = $jigsaw->getConfig('baseUrl');
|
$baseUrl = $jigsaw->getConfig('baseUrl');
|
||||||
|
|
||||||
if (!$baseUrl) {
|
if (!$baseUrl) {
|
||||||
echo("\nTo generate a sitemap.xml file, please specify a 'baseUrl' in config.php.\n\n");
|
echo "\nTo generate a sitemap.xml file, please specify a 'baseUrl' in config.php.\n\n";
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ return [
|
||||||
'Middleware Configuration' => 'docs/middleware-configuration',
|
'Middleware Configuration' => 'docs/middleware-configuration',
|
||||||
'Custom Database Names' => 'docs/custom-database-names',
|
'Custom Database Names' => 'docs/custom-database-names',
|
||||||
'Development' => 'docs/development',
|
'Development' => 'docs/development',
|
||||||
]
|
],
|
||||||
],
|
],
|
||||||
'Stay Updated' => 'docs/stay-updated',
|
'Stay Updated' => 'docs/stay-updated',
|
||||||
'GitHub' => 'https://github.com/stancl/tenancy',
|
'GitHub' => 'https://github.com/stancl/tenancy',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue