private function clearRoutes($remove)
    {
        $path = config('amranidev.config.routes');
        $lines = file($path, FILE_IGNORE_NEW_LINES);

        foreach (array_filter($lines, function ($line) use ($remove) {
            return strstr($line, $remove);
        }) as $key => $line) {
            unset($lines[$key]);
        }

        return file_put_contents($path, implode("\n", array_values($lines)));
    }
private function clearRoutes($remove)
    {
        $path = config('amranidev.config.routes');
        $lines = file($path, FILE_IGNORE_NEW_LINES);

        foreach (array_filter($lines, function ($line) use ($remove) {
            return strstr($line, $remove);
        }) as $key => $line) {
            unset($lines[$key]);
        }

        return file_put_contents($path, implode("\n", array_values($lines)));
    }
private function clearRoutes ( $ remove ) { $ path = config ( 'amranidev.config.routes' ) ; $ lines = file ( $ path , FILE_IGNORE_NEW_LINES ) ; foreach ( array_filter ( $ lines , function ( $ line ) use ( $ remove ) { return strstr ( $ line , $ remove ) ; } ) as $ key => $ line ) { unset ( $ lines [ $ key ] ) ; } return file_put_contents ( $ path , implode ( "\n" , array_values ( $ lines ) ) ) ; }
Clear routes.

@param string $remove

@return mixed
Clear routes .