Create a Custom View Finder

Create a custom view finder class in the app/Providers directory.

Create a file CustomViewFinder.php:

<?php

namespace App\Providers;

use Illuminate\View\FileViewFinder;
use Illuminate\Filesystem\Filesystem;

class CustomViewFinder extends FileViewFinder
{
    /**
     * Create a new view file finder instance.
     *
     * @param \Illuminate\Filesystem\Filesystem  $files
     * @param array  $paths
     * @param array  $extensions
     * @return void
     */
    public function __construct(Filesystem $files, array $paths = [], array $extensions = ['abc'])
    {
        parent::__construct($files, $paths, $extensions);
    }
}
?>

Register the Custom View Finder:

Bind the custom view finder in AppServiceProvider.php.

Open the app/Providers/AppServiceProvider.php file and modify the register() method:

public function register()
{
    $this->app->singleton(\Illuminate\View\FileViewFinder::class, function ($app) {
        return new \App\Providers\CustomViewFinder(
            $app['files'],
            $app['config']['view.paths'],
            ['abc'] // Specify the custom extension (.abc)
        );
    });
}

Now  place of blade replace abc