{{$title}}
--------------------------------------------------------------
-------------------------------------------------------------- composer require spatie/laravel-sitemap .env APP_URL=https://armansharif.com web.php use Spatie\Sitemap\SitemapGenerator; Route::get('/sitemap', function () { SitemapGenerator::create(config('app.url'))->writeToFile(public_path('sitemap.xml')); return response()->file(public_path('sitemap.xml')); }); hit "https://armansharif.com/sitemap" -------------------------------------------------------------- public/sitemap.xml use Spatie\Sitemap\Sitemap; use Spatie\Sitemap\Tags\Url; Sitemap::create() ->add(Url::create('/')) ->add(Url::create('/about')) ->writeToFile(public_path('sitemap.xml')); Sitemap::create() ->add(Url::create('/home')->setPriority(1.0)) ->add(Url::create('/about-us')) ->writeToFile(public_path('sitemap.xml')); -------------------------------------------------------------- public/robots.txt User-agent: * Disallow: /admin User-agent: * Disallow: /admin Sitemap: http://armansharif.com/sitemap.xml -------------------- ... -------------------------------------------- google search console new or Add property url prefix https://armansharif.com/ html tag copy and paste on ... add sitemap.xml --------------------------------------------- composer require artesaos/seotools php artisan vendor:publish --provider="Artesaos\SEOTools\Providers\SEOToolsServiceProvider" config/seotools.php SEOMeta::setTitle('Title'); SEOMeta::setDescription('Description'); use SEO; SEO::setTitle('Home Page'); SEO::setDescription('This is my page description'); SEO::opengraph()->setUrl('http://current.url.com'); SEO::setCanonical('https://codecasts.com.br/lesson'); SEO::opengraph()->addProperty('type', 'articles'); SEO::twitter()->setSite('@usuario'); SEO::jsonLd()->addImage('http://codecasts.com.br/img/logo.jpg'); config/app.php 'providers' => [ // ... Artesaos\SEOTools\Providers\SEOToolsServiceProvider::class, ], 'aliases' => [ // ... 'SEOMeta' => Artesaos\SEOTools\Facades\SEOMeta::class, 'OpenGraph' => Artesaos\SEOTools\Facades\OpenGraph::class, 'Twitter' => Artesaos\SEOTools\Facades\TwitterCard::class, 'JsonLd' => Artesaos\SEOTools\Facades\JsonLd::class, 'SEO' => Artesaos\SEOTools\Facades\SEOTools::class, ], https://www.youtube.com/watch?v=w24u5qveySU add google search console xml-sitemaps.com put domain name and download sitemap.xml paste file manager root directory .env jekhane thake https://www.youtube.com/watch?v=ljUPFbhTwfw bestsolutionbd.com
best-solution-bd@best-solution-bd.iam.gserviceaccount.com analytics